diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/projects/registry/repositories_controller.rb | 2 | ||||
-rw-r--r-- | app/models/container_repository.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/projects/registry/repositories_controller.rb b/app/controllers/projects/registry/repositories_controller.rb index 737f8424ebf..17f391ba07f 100644 --- a/app/controllers/projects/registry/repositories_controller.rb +++ b/app/controllers/projects/registry/repositories_controller.rb @@ -34,7 +34,7 @@ module Projects break if path.has_repository? ContainerRepository.build_from_path(path).tap do |repository| - repository.save if repository.has_tags? + repository.save! if repository.has_tags? end end end diff --git a/app/models/container_repository.rb b/app/models/container_repository.rb index 463eb5b7d69..9682df3a586 100644 --- a/app/models/container_repository.rb +++ b/app/models/container_repository.rb @@ -28,7 +28,7 @@ class ContainerRepository < ActiveRecord::Base end def manifest - @manifest ||= client.repository_tags(self.path) + @manifest ||= client.repository_tags(path) end def tags @@ -45,7 +45,7 @@ class ContainerRepository < ActiveRecord::Base end def has_tags? - tags.to_a.any? + tags.any? end def root_repository? |