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

internal/jujuapi: implement destroy model #161

Merged
merged 1 commit into from
Aug 24, 2016
Merged

internal/jujuapi: implement destroy model #161

merged 1 commit into from
Aug 24, 2016

Conversation

mhilton
Copy link

@mhilton mhilton commented Aug 23, 2016

No description provided.

results := make([]jujuparams.ErrorResult, len(args.Entities))

for i, arg := range args.Entities {
err := m.destroyModel(arg)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if err := m.destroyModel(arg); err != nil {

?

@rogpeppe
Copy link

LGTM modulo some suggestions and a reservation about that test that looks odd, thanks!

}
if len(deltas) == 0 {
// Let's not be too busy
time.Sleep(100 * time.Microsecond)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this actually ever happen? It shouldn't be necessary to sleep, as watchers should only ever send when there are changes.

@rogpeppe
Copy link

LGTM with a few minor suggestions, thanks!

@mhilton
Copy link
Author

mhilton commented Aug 24, 2016

:shipit:

@jujugui
Copy link

jujugui commented Aug 24, 2016

Status: merge request accepted. Url: http://ci.theblues.io:8080/job/jem-merge

@jujugui jujugui merged commit 8f9a1e9 into canonical:master Aug 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants