Merge pull request #468 from wellbehavedsoftware/fix-auth-urls

Fix registry url canonicalization in resolve_authconfig
This commit is contained in:
Maxime Petazzoni 2015-01-29 17:38:32 -08:00
commit c0703e3516
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ def resolve_authconfig(authconfig, registry=None):
#
# as there is only one auth entry which is fully qualified we need to start
# parsing and matching
if '/' not in registry:
if '/v1/' not in registry:
registry = registry + '/v1/'
if not registry.startswith('http:') and not registry.startswith('https:'):
registry = 'https://' + registry