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)