state: unexport UpgradeInProgressError #4611

Merged
merged 1 commit into from Mar 4, 2016

Conversation

Projects
None yet
2 participants
Contributor

davecheney commented Mar 3, 2016

There are too many ways for juju's API server to tell the client that it
is in upgrade state. Some come from state itself, others come from the
API server interpreting other errors from other sources.

This CL is part of a pair of changes that reduce the number of ways the
API server can say it is in upgrade state. Specifically other packages
can only inspect the error they get from state with the supplied helper
method, they cannot inspect it directly.

This CL is less than ideal is state depends on apiserver/params for the
CodeUpgradeInProgress constant. But this source dependency existed
before hand, so it's not the end of the world.

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

Contributor

davecheney commented Mar 3, 2016

$$JFDI$$

Contributor

jujubot commented Mar 3, 2016

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

Contributor

jujubot commented Mar 3, 2016

Build failed: Tests failed
build url: http://juju-ci.vapour.ws:8080/job/github-merge-juju/6659

state: unexport UpgradeInProgressError
There are too many ways for juju's API server to tell the client that it
is in upgrade state. Some come from state itself, others come from the
API server interpreting other errors from other sources.

This CL is part of a pair of changes that reduce the number of ways the
API server can say it is in upgrade state. Specifically other packages
can only inspect the error they get from state with the supplied helper
method, they cannot inspect it directly.

This CL is less than ideal is state depends on apiserver/params for the
CodeUpgradeInProgress constant. But this source dependency existed
before hand, so it's not the end of the world.
Contributor

davecheney commented Mar 4, 2016

$$JFDI$$

Contributor

jujubot commented Mar 4, 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 4, 2016

Merge pull request #4611 from davecheney/state-unexport-upgradeinprog…
…ress

state: unexport UpgradeInProgressError

There are too many ways for juju's API server to tell the client that it
is in upgrade state. Some come from state itself, others come from the
API server interpreting other errors from other sources.

This CL is part of a pair of changes that reduce the number of ways the
API server can say it is in upgrade state. Specifically other packages
can only inspect the error they get from state with the supplied helper
method, they cannot inspect it directly.

This CL is less than ideal is state depends on apiserver/params for the
CodeUpgradeInProgress constant. But this source dependency existed
before hand, so it's not the end of the world.

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

@jujubot jujubot merged commit 9cc7cb8 into juju:master Mar 4, 2016

@davecheney davecheney deleted the davecheney:state-unexport-upgradeinprogress branch Mar 4, 2016

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