diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-16 12:06:32 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-16 12:06:32 +0000 |
commit | d2ffc30fd583e86d4122bb5061098f4f3ca7b3f1 (patch) | |
tree | cb29c77a3ea49eb8ec732b0e644ed6cfad4770d9 /lib/container_registry | |
parent | 914ea32e0efca21436220df2c10e1bfbe4ed3da9 (diff) | |
download | gitlab-ce-d2ffc30fd583e86d4122bb5061098f4f3ca7b3f1.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/container_registry')
-rw-r--r-- | lib/container_registry/client.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/container_registry/client.rb b/lib/container_registry/client.rb index 2bd8eb65306..92861c567a8 100644 --- a/lib/container_registry/client.rb +++ b/lib/container_registry/client.rb @@ -36,7 +36,9 @@ module ContainerRegistry end def delete_repository_tag(name, reference) - faraday.delete("/v2/#{name}/manifests/#{reference}").success? + result = faraday.delete("/v2/#{name}/manifests/#{reference}") + + result.success? || result.status == 404 end def upload_raw_blob(path, blob) @@ -84,7 +86,9 @@ module ContainerRegistry end def delete_blob(name, digest) - faraday.delete("/v2/#{name}/blobs/#{digest}").success? + result = faraday.delete("/v2/#{name}/blobs/#{digest}") + + result.success? || result.status == 404 end def put_tag(name, reference, manifest) |