Merge lp:~wallyworld/juju-core/add-machine-panic into lp:~go-bot/juju-core/trunk
Status: | Merged |
---|---|
Approved by: | Ian Booth |
Approved revision: | no longer in the source branch. |
Merged at revision: | 1591 |
Proposed branch: | lp:~wallyworld/juju-core/add-machine-panic |
Merge into: | lp:~go-bot/juju-core/trunk |
Diff against target: |
351 lines (+93/-135) 9 files modified
cmd/juju/addmachine.go (+1/-1) cmd/juju/addmachine_test.go (+8/-4) cmd/juju/addunit.go (+1/-2) cmd/names.go (+25/-0) cmd/names_test.go (+36/-0) names/machine.go (+3/-13) names/machine_test.go (+3/-32) names/service_test.go (+16/-1) state/state_test.go (+0/-82) |
To merge this branch: | bzr merge lp:~wallyworld/juju-core/add-machine-panic |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju Engineering | Pending | ||
Review via email: mp+178185@code.launchpad.net |
Commit message
Remove panic for bad arg to add-machine
If add-machine is invoked with a machine id as the
argument, it no longer panics.
The recently refactored IsMachineOrNewC
method was moved from the names package to cmd
since it's only used there. Plus there were left
over tests in state which were duplicated in names
and some of the tests were missing so I fix that
as well.
Description of the change
Remove panic for bad arg to add-machine
If add-machine is invoked with a machine id as the
argument, it no longer panics.
The recently refactored IsMachineOrNewC
method was moved from the names package to cmd
since it's only used there. Plus there were left
over tests in state which were duplicated in names
and some of the tests were missing so I fix that
as well.
Reviewers: mp+178185_ code.launchpad. net,
Message:
Please take a look.
Description:
Remove panic for bad arg to add-machine
If add-machine is invoked with a machine id as the
argument, it no longer panics.
The recently refactored IsMachineOrNewC ontainer
method was moved from the names package to cmd
since it's only used there. Plus there were left
over tests in state which were duplicated in names
and some of the tests were missing so I fix that
as well.
https:/ /code.launchpad .net/~wallyworl d/juju- core/add- machine- panic/+ merge/178185
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/12309043/
Affected files: addmachine. go addmachine_ test.go test.go test.go
A [revision details]
M cmd/juju/
M cmd/juju/
M cmd/juju/addunit.go
A cmd/names.go
A cmd/names_test.go
M names/machine.go
M names/machine_
M names/service_
M state/state_test.go