Add repo purge callbacks and register TUF metadata deletion as one
This commit is contained in:
parent
883692345b
commit
ec63e495fc
5 changed files with 23 additions and 4 deletions
|
@ -420,9 +420,6 @@ class Repository(RepositoryParamResource):
|
|||
# Remove any builds from the queue.
|
||||
dockerfile_build_queue.delete_namespaced_items(namespace, repository)
|
||||
|
||||
if features.SIGNING:
|
||||
tuf_metadata_api.delete_metadata(namespace, repository)
|
||||
|
||||
log_action('delete_repo', namespace,
|
||||
{'repo': repository, 'namespace': namespace})
|
||||
return '', 204
|
||||
|
|
Reference in a new issue