summaryrefslogtreecommitdiff
path: root/lib/container_registry
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-04-13 11:54:02 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-04-13 11:54:02 +0200
commitb5b6c7b17527cc2360066557207af935bec2168f (patch)
tree5d1eb736f0d9a892f73dfff7f0739d75e7359079 /lib/container_registry
parent259108ada340a0f1d49e2d80d1c433a377983e1c (diff)
downloadgitlab-ce-b5b6c7b17527cc2360066557207af935bec2168f.tar.gz
Sanitize container repository path in model classfix/gb/fix-registry-for-uppercased-project-paths
Diffstat (limited to 'lib/container_registry')
-rw-r--r--lib/container_registry/path.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/container_registry/path.rb b/lib/container_registry/path.rb
index 30828bb6565..4a585996aa5 100644
--- a/lib/container_registry/path.rb
+++ b/lib/container_registry/path.rb
@@ -15,7 +15,7 @@ module ContainerRegistry
LEVELS_SUPPORTED = 3
def initialize(path)
- @path = path.downcase
+ @path = path.to_s.downcase
end
def valid?
@@ -25,7 +25,7 @@ module ContainerRegistry
end
def components
- @components ||= @path.to_s.split('/')
+ @components ||= @path.split('/')
end
def nodes