style(data+endpoints): ran yapf
### Description of Changes ran yapf for the branch [TESTING->locally using docker compose] Issue: https://coreosdev.atlassian.net/browse/QUAY-632 ## Reviewer Checklist - [ ] It works! - [ ] Comments provide sufficient explanations for the next contributor - [ ] Tests cover changes and corner cases - [ ] Follows Quay syntax patterns and format
This commit is contained in:
parent
fc4b3642d3
commit
897a091692
7 changed files with 135 additions and 87 deletions
|
@ -74,6 +74,7 @@ def historical_image_view(image, image_map):
|
|||
@path_param('repository', 'The full path of the repository. e.g. namespace/name')
|
||||
class RepositoryImageList(RepositoryParamResource):
|
||||
""" Resource for listing repository images. """
|
||||
|
||||
@require_repo_read
|
||||
@nickname('listRepositoryImages')
|
||||
@disallow_for_app_repositories
|
||||
|
@ -105,9 +106,7 @@ class RepositoryImageList(RepositoryParamResource):
|
|||
image_json['tags'] = tags_by_docker_id[image_json['id']]
|
||||
return image_json
|
||||
|
||||
return {
|
||||
'images': [add_tags(image_view(image, image_map)) for image in filtered_images]
|
||||
}
|
||||
return {'images': [add_tags(image_view(image, image_map)) for image in filtered_images]}
|
||||
|
||||
|
||||
@resource('/v1/repository/<apirepopath:repository>/image/<image_id>')
|
||||
|
@ -115,6 +114,7 @@ class RepositoryImageList(RepositoryParamResource):
|
|||
@path_param('image_id', 'The Docker image ID')
|
||||
class RepositoryImage(RepositoryParamResource):
|
||||
""" Resource for handling repository images. """
|
||||
|
||||
@require_repo_read
|
||||
@nickname('getImage')
|
||||
@disallow_for_app_repositories
|
||||
|
@ -130,4 +130,3 @@ class RepositoryImage(RepositoryParamResource):
|
|||
image_map[current_image.id] = current_image
|
||||
|
||||
return historical_image_view(image, image_map)
|
||||
|
||||
|
|
Reference in a new issue