summaryrefslogtreecommitdiff
path: root/lib/container_registry/registry.rb
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-05-16 09:49:55 -0500
committerKamil Trzcinski <ayufan@ayufan.eu>2016-05-16 09:49:55 -0500
commite60bbdf9d9609fd0624be61dcf8a3a0432040ad1 (patch)
tree7a7e14d3f047e98b88e0dd11217e0ccd474d166e /lib/container_registry/registry.rb
parent5b3ac8c83f19bfa8b897f307c056c521fd1d052a (diff)
downloadgitlab-ce-e60bbdf9d9609fd0624be61dcf8a3a0432040ad1.tar.gz
Fix path to tag
Diffstat (limited to 'lib/container_registry/registry.rb')
-rw-r--r--lib/container_registry/registry.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/container_registry/registry.rb b/lib/container_registry/registry.rb
index a86ddb9326a..d3b117eeaca 100644
--- a/lib/container_registry/registry.rb
+++ b/lib/container_registry/registry.rb
@@ -3,7 +3,7 @@ module ContainerRegistry
attr_reader :uri, :client, :path
def initialize(uri, options = {})
- @path = uri || options[:path]
+ @path = options[:path] || uri
@uri = URI.parse(uri)
@client = ContainerRegistry::Client.new(uri, options)
end