Add repo purge callbacks and register TUF metadata deletion as one

This commit is contained in:
Evan Cordell 2017-04-12 15:47:24 -04:00
parent 883692345b
commit ec63e495fc
5 changed files with 23 additions and 4 deletions

View file

@ -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