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

Actually fixed dockerng.list_tags #35308

Merged
merged 1 commit into from
Aug 10, 2016
Merged

Conversation

farcaller
Copy link
Contributor

What does this PR do?

Fixes the bug introduced in #34702

@@ -2237,7 +2237,9 @@ def list_tags():
'''
ret = set()
for item in six.itervalues(images()):
for repo_tag in item.get('RepoTags', []):
if item.get('RepoTags', None):
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you're missing a not here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Indeed. I should have actually tested that version. Or this version, FWIW.

@@ -2237,7 +2237,9 @@ def list_tags():
'''
ret = set()
for item in six.itervalues(images()):
for repo_tag in item.get('RepoTags', []):
if not item.get('RepoTags', None):
Copy link

Choose a reason for hiding this comment

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

None is the default value that dict.get uses, no need to repeat it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ack.

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.

4 participants