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
WIP State level WatchInterfaces #207
Conversation
wc.AssertOneChange() | ||
|
||
// Disable the first interface. | ||
err = ifaces[0].SetDisabled(true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW, I would generally prefer to see positive terms than negative ones -- !disabled
is a really cumbersome way to write "enabled", compared to !enabled
for "disabled".
return results.Results[0].Info, nil | ||
} | ||
|
||
// WatchInterfaces returns a NotifyWatcher that notifies of changes of network |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/changes of/changes to/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Looks almost ready, apart from a couple issues with the tests. |
LGTM, thank you! |
|
Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju |
|
Build failed: Some weird error with not finding the landing script, probably transitory: /tmp/hudson6827171313236674227.sh: line 121: /home/ubuntu/jenkins-github-lander/bin/lander-merge-result: No such file or directory |
|
Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju |
WIP State level WatchInterfaces Wraps the State level WatchInterfaces watcher, and maps the Ids we get from state into Tags for the API. This also includes exposing the WatchInterfaces call in the API, so touching state/apiserver and state/api
Wraps the State level WatchInterfaces watcher, and maps the Ids we get from state into Tags for the API.
This also includes exposing the WatchInterfaces call in the API, so touching state/apiserver and state/api