From 325908ad3931f12dcada654d164ae09ff5f00c6e Mon Sep 17 00:00:00 2001 From: Grzegorz Bizon Date: Mon, 3 Apr 2017 16:38:51 +0200 Subject: [PATCH] Remove changes unnecessary changes from namespace model --- app/models/namespace.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/models/namespace.rb b/app/models/namespace.rb index b57ed258af7..1d4b1f7d590 100644 --- a/app/models/namespace.rb +++ b/app/models/namespace.rb @@ -113,8 +113,8 @@ class Namespace < ActiveRecord::Base end def move_dir - if any_project_has_container_registry_images? - raise Gitlab::UpdatePathError.new('Namespace cannot be moved, because at least one project has images in container registry') + if any_project_has_container_registry_tags? + raise Gitlab::UpdatePathError.new('Namespace cannot be moved, because at least one project has tags in container registry') end # Move the namespace directory in all storages paths used by member projects @@ -149,7 +149,7 @@ class Namespace < ActiveRecord::Base end end - def any_project_has_container_registry_images? + def any_project_has_container_registry_tags? projects.any?(&:has_container_registry_tags?) end -- GitLab