|
state: rename State.APIAddresses
To add an API addresses document, we will need to replace the
current APIAddresses method with a method that reads the
addresses from the document. However until we have a worker
that populates the document, we still need access to the old
functionality, which returns the API addresses by collating
the addresses from the machines in state.
This CL renames the old method so that we become
free to implement the new method without breaking
existing functionality. The old method will eventually
be removed.
Better suggestions for the name happily received
(APIAddressesDeprecated?)
https://code.launchpad.net/~rogpeppe/juju-core/516-state-set-api-addresses/+merge/211320
(do not edit description out of merge proposal)
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+17 lines, -13 lines) |
Patch |
|
A |
[revision details]
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
state/address.go
|
View
|
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
|
M |
state/api/deployer/deployer_test.go
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
state/api/provisioner/provisioner_test.go
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
state/api/uniter/state_test.go
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
state/apiserver/common/addresses.go
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
state/apiserver/common/addresses_test.go
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
state/apiserver/deployer/deployer_test.go
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
state/apiserver/provisioner/provisioner_test.go
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
state/apiserver/uniter/uniter_test.go
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
state/state_test.go
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
worker/uniter/uniter_test.go
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 4
|