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

« back to all changes in this revision

Viewing changes to src/github.com/juju/juju/cmd/juju/controller/register.go

  • Committer: Nicholas Skaggs
  • Date: 2016-09-30 14:39:30 UTC
  • mfrom: (1.8.1)
  • Revision ID: nicholas.skaggs@canonical.com-20160930143930-vwwhrefh6ftckccy
import upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
        "github.com/juju/juju/apiserver/params"
31
31
        "github.com/juju/juju/cmd/juju/common"
32
32
        "github.com/juju/juju/cmd/modelcmd"
33
 
        "github.com/juju/juju/core/description"
34
33
        "github.com/juju/juju/jujuclient"
 
34
        "github.com/juju/juju/permission"
35
35
)
36
36
 
37
37
var errNoModels = errors.New(`
173
173
        }
174
174
        accountDetails := jujuclient.AccountDetails{
175
175
                User:            registrationParams.userTag.Canonical(),
176
 
                LastKnownAccess: string(description.LoginAccess),
 
176
                LastKnownAccess: string(permission.LoginAccess),
177
177
        }
178
178
        if err := store.UpdateAccount(registrationParams.controllerName, accountDetails); err != nil {
179
179
                return errors.Trace(err)