From e0385f955de43b67c494bf8d744827ca30fda1cf Mon Sep 17 00:00:00 2001 From: ericxiett Date: Tue, 21 Apr 2020 09:05:19 +0800 Subject: [PATCH] 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 --- scripts/fetch_wheels.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/fetch_wheels.py b/scripts/fetch_wheels.py index b8aab63..c4ddf52 100755 --- a/scripts/fetch_wheels.py +++ b/scripts/fetch_wheels.py @@ -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)