Merge lp:~axwalk/juju-core/state-addmachineparams-expose into lp:~go-bot/juju-core/trunk
Status: | Merged |
---|---|
Approved by: | Andrew Wilkins |
Approved revision: | no longer in the source branch. |
Merged at revision: | 1704 |
Proposed branch: | lp:~axwalk/juju-core/state-addmachineparams-expose |
Merge into: | lp:~go-bot/juju-core/trunk |
Diff against target: |
258 lines (+90/-48) 4 files modified
cmd/jujud/machine_test.go (+6/-3) environs/bootstrap/bootstrap.go (+8/-1) state/state.go (+30/-29) state/state_test.go (+46/-15) |
To merge this branch: | bzr merge lp:~axwalk/juju-core/state-addmachineparams-expose |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju Engineering | Pending | ||
Review via email: mp+181488@code.launchpad.net |
Commit message
state: modify InjectMachine to take params struct
InjectMachine is modified to take AddMachineParams
struct, and that struct's fields are now all
exported. Additionally, AddMachineWithC
(which already took the params struct), now checks
that the formerly non-exported fields are blank
upon entry.
These changes are to accommodate manual provisioning,
where we want to inject a machine into state, but
set the nonce to something other than the bootstrap
nonce. Additionally, we are likely to add provider
type into the machine document soon.
Description of the change
state: modify InjectMachine to take params struct
InjectMachine is modified to take AddMachineParams
struct, and that struct's fields are now all
exported. Additionally, AddMachineWithC
(which already took the params struct), now checks
that the formerly non-exported fields are blank
upon entry.
These changes are to accommodate manual provisioning,
where we want to inject a machine into state, but
set the nonce to something other than the bootstrap
nonce. Additionally, we are likely to add provider
type into the machine document soon.
Reviewers: mp+181488_ code.launchpad. net,
Message:
Please take a look.
Description:
state: modify InjectMachine to take params struct
InjectMachine is modified to take AddMachineParams onstraints
struct, and that struct's fields are now all
exported. Additionally, AddMachineWithC
(which already took the params struct), now checks
that the formerly non-exported fields are blank
upon entry.
These changes are to accommodate manual provisioning,
where we want to inject a machine into state, but
set the nonce to something other than the bootstrap
nonce. Additionally, we are likely to add provider
type into the machine document soon.
https:/ /code.launchpad .net/~axwalk/ juju-core/ state-addmachin eparams- expose/ +merge/ 181488
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/13169043/
Affected files: machine_ test.go bootstrap. go
A [revision details]
M cmd/jujud/
M environs/
M state/state.go
M state/state_test.go