~fwereade/juju-core/unit-remove-depart-scopes

« back to all changes in this revision

Viewing changes to environs/cloudinit.go

  • Committer: William Reade
  • Date: 2013-11-07 17:30:38 UTC
  • mfrom: (2032.1.6 juju-core)
  • Revision ID: fwereade@gmail.com-20131107173038-d0a72q96dujotc0z
merge parent

Show diffs side-by-side

added added

removed removed

Lines of Context:
102
102
        if password == "" {
103
103
                return fmt.Errorf("environment configuration has no admin-secret")
104
104
        }
105
 
        passwordHash := utils.PasswordHash(password)
 
105
        passwordHash := utils.UserPasswordHash(password, utils.CompatSalt)
106
106
        mcfg.APIInfo = &api.Info{Password: passwordHash, CACert: caCert}
107
107
        mcfg.StateInfo = &state.Info{Password: passwordHash, CACert: caCert}
108
108
        mcfg.StatePort = cfg.StatePort()