~jameinel/juju-core/api-facade-registry

« back to all changes in this revision

Viewing changes to provider/maas/util.go

  • Committer: John Arbash Meinel
  • Date: 2014-05-14 12:29:15 UTC
  • mfrom: (2715.2.15 juju-core)
  • Revision ID: john@arbash-meinel.com-20140514122915-lf70e9bkkxx9m11q
Merge trunk r2730

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
}
25
25
 
26
26
// getSystemIdValues returns a url.Values object with all the 'system_ids'
27
 
// from the given instanceIds stored under the key 'id'.  This is used
 
27
// from the given instanceIds stored under the specified key.  This is used
28
28
// to filter out instances when listing the nodes objects.
29
 
func getSystemIdValues(instanceIds []instance.Id) url.Values {
 
29
func getSystemIdValues(key string, instanceIds []instance.Id) url.Values {
30
30
        values := url.Values{}
31
31
        for _, instanceId := range instanceIds {
32
 
                values.Add("id", extractSystemId(instanceId))
 
32
                values.Add(key, extractSystemId(instanceId))
33
33
        }
34
34
        return values
35
35
}