summaryrefslogtreecommitdiff
path: root/app/services
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2018-09-07 22:36:19 -0700
committerStan Hu <stanhu@gmail.com>2018-09-07 22:36:19 -0700
commita5210ba82945485092b7f14833c309122f93a13d (patch)
treee8b63a081d9ea6139211dbbceecc3b5ae7c3637a /app/services
parent1d69d26f9f4c950f7c42ad4a7de2f95e11475172 (diff)
downloadgitlab-ce-a5210ba82945485092b7f14833c309122f93a13d.tar.gz
Fix scoping errors occuring for ContainerRepository on some builds
Diffstat (limited to 'app/services')
-rw-r--r--app/services/projects/destroy_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/projects/destroy_service.rb b/app/services/projects/destroy_service.rb
index 76e22507698..01de6afcd8e 100644
--- a/app/services/projects/destroy_service.rb
+++ b/app/services/projects/destroy_service.rb
@@ -159,7 +159,7 @@ module Projects
def remove_legacy_registry_tags
return true unless Gitlab.config.registry.enabled
- ContainerRepository.build_root_repository(project).tap do |repository|
+ ::ContainerRepository.build_root_repository(project).tap do |repository|
break repository.has_tags? ? repository.delete_tags! : true
end
end