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:
ericxiett 2020-04-21 09:05:19 +08:00
parent c94a86c328
commit e0385f955d
1 changed files with 4 additions and 4 deletions

View File

@ -16,11 +16,11 @@ DOCKER_REGISTRY='registry.hub.docker.com'
def get_token(protocol, registry, repo):
if registry == DOCKER_REGISTRY:
authserver = 'auth.docker.io'
service = 'registry.docker.io'
authserver = 'auth.docker.io'
service = 'registry.docker.io'
else:
authserver = "{}/v2".format(registry)
service = registry.split(':')[0]
authserver = "{}/v2".format(registry)
service = registry.split(':')[0]
url = "{}://{}/token?service={}&" \
"scope=repository:{}:pull".format(protocol, authserver, service, repo)
print(url)