~themue/juju-core/053-env-more-script-friendly

« back to all changes in this revision

Viewing changes to environs/openstack/provider.go

  • Committer: Dimiter Naydenov
  • Date: 2013-07-29 15:15:41 UTC
  • mto: This revision was merged to the branch mainline in revision 1565.
  • Revision ID: dimiter.naydenov@canonical.com-20130729151541-zm8murwo9u7mtsdu
names: new package

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
        "errors"
10
10
        "fmt"
11
11
        "io/ioutil"
 
12
        "net/http"
 
13
        "strings"
 
14
        "sync"
 
15
        "time"
 
16
 
12
17
        "launchpad.net/goose/client"
13
18
        gooseerrors "launchpad.net/goose/errors"
14
19
        "launchpad.net/goose/identity"
15
20
        "launchpad.net/goose/nova"
16
21
        "launchpad.net/goose/swift"
 
22
 
17
23
        "launchpad.net/juju-core/agent/tools"
18
24
        "launchpad.net/juju-core/constraints"
19
25
        "launchpad.net/juju-core/environs"
23
29
        "launchpad.net/juju-core/environs/instances"
24
30
        "launchpad.net/juju-core/instance"
25
31
        "launchpad.net/juju-core/log"
 
32
        "launchpad.net/juju-core/names"
26
33
        "launchpad.net/juju-core/state"
27
34
        "launchpad.net/juju-core/state/api"
28
35
        "launchpad.net/juju-core/utils"
29
 
        "net/http"
30
 
        "strings"
31
 
        "sync"
32
 
        "time"
33
36
)
34
37
 
35
38
type environProvider struct{}
871
874
}
872
875
 
873
876
func (e *environ) machineFullName(machineId string) string {
874
 
        return fmt.Sprintf("juju-%s-%s", e.Name(), state.MachineTag(machineId))
 
877
        return fmt.Sprintf("juju-%s-%s", e.Name(), names.MachineTag(machineId))
875
878
}
876
879
 
877
880
// machinesFilter returns a nova.Filter matching all machines in the environment.