~juju-qa/juju-core/1.16-packaging

« back to all changes in this revision

Viewing changes to src/launchpad.net/gomaasapi/testservice.go

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2013-09-17 13:43:12 UTC
  • mfrom: (1.1.8)
  • Revision ID: package-import@ubuntu.com-20130917134312-ppixfoa1z26qj7q1
Tags: 1.14.0-0ubuntu1
New upstream stable release (stabilization of 1.13 series).

Show diffs side-by-side

added added

removed removed

Lines of Context:
128
128
}
129
129
 
130
130
// NewNode creates a MAAS node.  The provided string should be a valid json
131
 
// string representing a map and contain a string value for the key 
 
131
// string representing a map and contain a string value for the key
132
132
// 'system_id'.  e.g. `{"system_id": "mysystemid"}`.
133
133
// If one of these conditions is not met, NewNode panics.
134
134
func (server *TestServer) NewNode(jsonText string) MAASObject {
424
424
        prefix := values.Get("prefix")
425
425
        filenames := listFilenames(server, prefix)
426
426
 
427
 
        // Build a sorted list of the files as map[string]JSONObject objects. 
 
427
        // Build a sorted list of the files as map[string]JSONObject objects.
428
428
        convertedFiles := make([]map[string]JSONObject, 0)
429
429
        for _, filename := range filenames {
430
430
                // The "content" attribute is not in the listing.