Merge pull request #2817 from coreos-inc/joseph.schorr/QUAY-688/dex-fixes
Dex Fixes
This commit is contained in:
commit
83e9dfac7a
6 changed files with 105 additions and 104 deletions
|
@ -330,7 +330,8 @@ class RepositoryTrust(RepositoryParamResource):
|
|||
|
||||
tags, _ = tuf_metadata_api.get_default_tags_with_expiration(namespace, repository)
|
||||
if tags and not tuf_metadata_api.delete_metadata(namespace, repository):
|
||||
raise DownstreamIssue({'message': 'Unable to delete downstream trust metadata'})
|
||||
raise DownstreamIssue('Unable to delete downstream trust metadata')
|
||||
|
||||
values = request.get_json()
|
||||
model.set_trust(namespace, repository, values['trust_enabled'])
|
||||
|
||||
|
|
|
@ -47,7 +47,7 @@ def _security_status_for_image(namespace, repository, repo_image, include_vulner
|
|||
else:
|
||||
data = secscan_api.get_layer_data(repo_image, include_features=True)
|
||||
except APIRequestFailure as arf:
|
||||
raise DownstreamIssue({'message': arf.message})
|
||||
raise DownstreamIssue(arf.message)
|
||||
|
||||
if data is None:
|
||||
raise NotFound()
|
||||
|
|
Reference in a new issue