mirror of https://github.com/docker/docker-py.git
Merge pull request #468 from wellbehavedsoftware/fix-auth-urls
Fix registry url canonicalization in resolve_authconfig
This commit is contained in:
commit
c0703e3516
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue