diff options
author | Stan Hu <stanhu@gmail.com> | 2018-09-08 08:36:19 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-09-08 08:36:19 +0300 |
commit | a5210ba82945485092b7f14833c309122f93a13d (patch) | |
tree | e8b63a081d9ea6139211dbbceecc3b5ae7c3637a /app/services/projects | |
parent | 1d69d26f9f4c950f7c42ad4a7de2f95e11475172 (diff) |
Fix scoping errors occuring for ContainerRepository on some builds
Diffstat (limited to 'app/services/projects')
-rw-r--r-- | app/services/projects/destroy_service.rb | 2 |
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 |