~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/common/controller.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:
61
61
        // At bootstrap we have 2 models, the controller model and the default.
62
62
        two := 2
63
63
        params := juju.UpdateControllerParams{
64
 
                AgentVersion:    agentVersion.String(),
65
 
                AddrConnectedTo: apiHostPorts,
66
 
                MachineCount:    &length,
67
 
                ModelCount:      &two,
 
64
                AgentVersion:           agentVersion.String(),
 
65
                AddrConnectedTo:        apiHostPorts,
 
66
                MachineCount:           &length,
 
67
                ControllerMachineCount: &length,
 
68
                ModelCount:             &two,
68
69
        }
69
70
        return juju.UpdateControllerDetailsFromLogin(store, controllerName, params)
70
71
}