summaryrefslogtreecommitdiff
path: root/app/services/auth/container_registry_authentication_service.rb
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-03-31 12:27:05 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-03-31 12:27:05 +0200
commit60cdd2bcc894cf9cce4892570bf6a146dc45e536 (patch)
treef2564895a487658eed25f73bd67a53b7c96ea99d /app/services/auth/container_registry_authentication_service.rb
parenta7466af3a6f31311d64654631a2ea2740c42b88e (diff)
downloadgitlab-ce-60cdd2bcc894cf9cce4892570bf6a146dc45e536.tar.gz
Add specs for container repository factory method
Diffstat (limited to 'app/services/auth/container_registry_authentication_service.rb')
-rw-r--r--app/services/auth/container_registry_authentication_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/auth/container_registry_authentication_service.rb b/app/services/auth/container_registry_authentication_service.rb
index dcb728b6151..d58ff589be1 100644
--- a/app/services/auth/container_registry_authentication_service.rb
+++ b/app/services/auth/container_registry_authentication_service.rb
@@ -94,7 +94,7 @@ module Auth
return if path.has_repository?
return unless actions.include?('push')
- ContainerRepository.create_from_path(path)
+ ContainerRepository.create_from_path!(path)
end
def can_access?(requested_project, requested_action)