apiserver/client: InstanceConfig: use cached addrs #4816

Merged
merged 1 commit into from Mar 21, 2016

Conversation

Projects
None yet
2 participants
Member

axw commented Mar 21, 2016

The ProvisioningScript client method calls InstanceConfig,
which was constructing an Environ to get the Juju API
addresses. We already store those addresses in state, so
just fetch them from state.

Fixes https://bugs.launchpad.net/juju-core/+bug/1559299

(Review request: http://reviews.vapour.ws/r/4258/)

apiserver/client: InstanceConfig: use cached addrs
The ProvisioningScript client method calls InstanceConfig,
which was constructing an Environ to get the Juju API
addresses. We already store those addresses in state, so
just fetch them from state.

Fixes https://bugs.launchpad.net/juju-core/+bug/1559299
Member

axw commented Mar 21, 2016

$$merge$$

Contributor

jujubot commented Mar 21, 2016

Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju

jujubot added a commit that referenced this pull request Mar 21, 2016

Merge pull request #4816 from axw/provisioningscript-apiaddrs-state
apiserver/client: InstanceConfig: use cached addrs

The ProvisioningScript client method calls InstanceConfig,
which was constructing an Environ to get the Juju API
addresses. We already store those addresses in state, so
just fetch them from state.

Fixes https://bugs.launchpad.net/juju-core/+bug/1559299

(Review request: http://reviews.vapour.ws/r/4258/)

@jujubot jujubot merged commit ecdb7b0 into juju:admin-controller-model Mar 21, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment