Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

state/apiserver/common: drop EnvironWatcher.canWatch #533

Merged
merged 2 commits into from Aug 18, 2014
Merged

state/apiserver/common: drop EnvironWatcher.canWatch #533

merged 2 commits into from Aug 18, 2014

Conversation

davecheney
Copy link
Contributor

In all cases canWatch was being populated with the common.AuthAlways factory; in effect canWatch(anything) would always return true.

The only case where it did not return true was in our unit test cases which would force the value to be false to generate a suprious ErrPerm which was then validated by the tests.

In all cases canWatch was being populated with the common.AuthAlways factory; in effect canWatch(anything) would always return true.

The only case where it did not return true was in our unit test cases which would force the value to be false to generate a suprious ErrPerm which was then validated by the tests.
@howbazaar
Copy link
Contributor

Seems reasonable to me. I can't foresee a position where we wouldn't be able to watch the environment at all. It seems so central to all worker interaction.

@howbazaar
Copy link
Contributor

LGTM

@davecheney
Copy link
Contributor Author

$$merge$$

@jujubot
Copy link
Collaborator

jujubot commented Aug 18, 2014

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

jujubot added a commit that referenced this pull request Aug 18, 2014
…vironwatcher-drop-canwatch

state/apiserver/common: drop EnvironWatcher.canWatch

In all cases canWatch was being populated with the common.AuthAlways factory; in effect canWatch(anything) would always return true.

The only case where it did not return true was in our unit test cases which would force the value to be false to generate a suprious ErrPerm which was then validated by the tests.
@jujubot jujubot merged commit 49172f2 into juju:master Aug 18, 2014
@davecheney davecheney deleted the 177-state-apiserver-common-environwatcher-drop-canwatch branch April 13, 2016 23:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants