Skip to content

Commit

Permalink
Force search to include all required fields
Browse files Browse the repository at this point in the history
closes #1693
  • Loading branch information
asmacdo committed Feb 18, 2016
1 parent d57aceb commit f97b7b2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions extensions_admin/pulp_docker/extensions/admin/images.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,11 @@ def run(self, **kwargs):
# Get the list of images
repo_id = kwargs.pop(options.OPTION_REPO_ID.keyword)
kwargs['type_ids'] = [constants.IMAGE_TYPE_ID]

# image_id is required
if kwargs.get('fields') and 'image_id' not in kwargs.get('fields'):
kwargs['fields'].append('image_id')

images = self.context.server.repo_unit.search(repo_id, **kwargs).response_body

# Get the list of tags for the repo
Expand Down

0 comments on commit f97b7b2

Please sign in to comment.