Fix incorrect code indentation
In python code, should use 4 spaces as indentation. This patch fixes the wrong 2 spaces as indentation. Change-Id: Iaa1cc14e9c671bd6445ce2618742ba8d289367e7 Story: #2007579 Task: #39494
This commit is contained in:
parent
c94a86c328
commit
e0385f955d
|
@ -16,11 +16,11 @@ DOCKER_REGISTRY='registry.hub.docker.com'
|
||||||
|
|
||||||
def get_token(protocol, registry, repo):
|
def get_token(protocol, registry, repo):
|
||||||
if registry == DOCKER_REGISTRY:
|
if registry == DOCKER_REGISTRY:
|
||||||
authserver = 'auth.docker.io'
|
authserver = 'auth.docker.io'
|
||||||
service = 'registry.docker.io'
|
service = 'registry.docker.io'
|
||||||
else:
|
else:
|
||||||
authserver = "{}/v2".format(registry)
|
authserver = "{}/v2".format(registry)
|
||||||
service = registry.split(':')[0]
|
service = registry.split(':')[0]
|
||||||
url = "{}://{}/token?service={}&" \
|
url = "{}://{}/token?service={}&" \
|
||||||
"scope=repository:{}:pull".format(protocol, authserver, service, repo)
|
"scope=repository:{}:pull".format(protocol, authserver, service, repo)
|
||||||
print(url)
|
print(url)
|
||||||
|
|
Loading…
Reference in New Issue