|
state: unit: AssignedMachine returns a machine
This proposal alters AssignedMachine (and it's signature) to return a
*state.Machine rather than an id. All the non test consumers of this
method are actually after a *Machine, not the id anyway, so this saves them
the call to state.Machine(). The test code was altered for the new signature
but is operation is unaffected.
https://code.launchpad.net/~dave-cheney/juju-core/089-state-unit-assigned-machine/+merge/122617
(do not edit description out of merge proposal)
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+40 lines, -42 lines) |
Patch |
 |
A |
[revision details]
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cmd/juju/status.go
|
View
|
|
1 chunk |
+2 lines, -2 lines |
1 comment
|
Download
|
 |
M |
cmd/jujud/provisioning_test.go
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
juju/deploy_test.go
|
View
|
|
1 chunk |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
state/assign_test.go
|
View
|
|
8 chunks |
+18 lines, -18 lines |
0 comments
|
Download
|
 |
M |
state/service_test.go
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
state/unit.go
|
View
|
|
1 chunk |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
M |
worker/firewaller/firewaller.go
|
View
|
|
1 chunk |
+3 lines, -3 lines |
1 comment
|
Download
|
 |
M |
worker/firewaller/firewaller_test.go
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
Total messages: 4
|