Kaydet (Commit) 86390888 authored tarafından Joffrey F's avatar Joffrey F

shorter convert_to_hostname

üst b1a858a1
......@@ -80,9 +80,7 @@ def resolve_authconfig(authconfig, registry=None):
def convert_to_hostname(url):
url = url.replace('http://', '')
url = url.replace('https://', '')
return url.split('/', 1)[0]
return url.replace('http://', '').replace('https://', '').split('/', 1)[0]
def encode_auth(auth_info):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment