~juju-qa/ubuntu/xenial/juju/xenial-2.0-beta3

« back to all changes in this revision

Viewing changes to src/github.com/juju/juju/provider/cloudsigma/client.go

  • Committer: Martin Packman
  • Date: 2016-03-30 19:31:08 UTC
  • mfrom: (1.1.41)
  • Revision ID: martin.packman@canonical.com-20160330193108-h9iz3ak334uk0z5r
Merge new upstream source 2.0~beta3

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 
31
31
// newClient returns an instance of the CloudSigma client.
32
32
var newClient = func(cfg *environConfig) (client *environClient, err error) {
33
 
        uuid, ok := cfg.UUID()
34
 
        if !ok {
35
 
                return nil, errors.New("Environ uuid must not be empty")
36
 
        }
37
 
 
 
33
        uuid := cfg.UUID()
38
34
        logger.Debugf("creating CloudSigma client: id=%q", uuid)
39
35
 
40
36
        // create connection to CloudSigma