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

Fixes lp#1721786: Ignore NotFound during for model lists. #7939

Merged
merged 1 commit into from
Oct 16, 2017

Conversation

anastasiamac
Copy link
Contributor

Description of change

We get a comprehensive model list that suits the criteria specified for listing. However, when we come to get model details, there is a chance that the model has been removed since the initial call.

This PR cater for this situation by ignoring NotFound errors.

Bug reference

https://bugs.launchpad.net/juju/+bug/1721786

Copy link
Member

@jameinel jameinel left a comment

Choose a reason for hiding this comment

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

Do we have a way to inject a test for this sort of thing? It seems that it is happening in 3 different places, so a common fixture seems useful.

@anastasiamac
Copy link
Contributor Author

I'll have a follow-up with tests against a mock-up pool.
$$merge$$

@jujubot
Copy link
Collaborator

jujubot commented Oct 16, 2017

Status: merge request accepted. Url: http://ci.jujucharms.com/job/github-merge-juju

@jujubot jujubot merged commit b739703 into juju:develop Oct 16, 2017
@anastasiamac anastasiamac deleted the not-found-reaction branch October 16, 2017 22:40
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