Merge pull request #110 from tutumcloud/fix_auth_ping

Fix bug when checking HTTPS connection to private registries
This commit is contained in:
Joffrey F 2013-12-02 06:58:06 -08:00
commit 732b69be2e
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ def expand_registry_url(hostname):
if '/' not in hostname[9:]:
hostname = hostname + '/v1/'
return hostname
if utils.ping('https://' + hostname + '_ping'):
if utils.ping('https://' + hostname + '/v1/_ping'):
return 'https://' + hostname + '/v1/'
return 'http://' + hostname + '/v1/'