summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Leidal <kkleidal@gmail.com>2015-01-08 13:59:19 -0500
committerKen Leidal <kkleidal@gmail.com>2015-01-08 13:59:19 -0500
commit5baa5e48831f29d3a7dd41942e4727b4c9dad329 (patch)
treea2e16b944746ffe8bd86bbaaa2f1f3df20aec5f8
parent6a63cb2c963428dae34adebb8660deaedbe231c9 (diff)
downloaddocker-py-5baa5e48831f29d3a7dd41942e4727b4c9dad329.tar.gz
removed exception thrown if registry.hub.docker.com is explicitly defined in repository param for client.pull
-rw-r--r--docker/auth/auth.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/auth/auth.py b/docker/auth/auth.py
index fb41fa9..e4bc657 100644
--- a/docker/auth/auth.py
+++ b/docker/auth/auth.py
@@ -59,7 +59,7 @@ def resolve_repository_name(repo_name, insecure=False):
raise errors.InvalidRepository(
'Invalid repository name ({0})'.format(repo_name))
- if 'index.docker.io' in parts[0] or 'registry.hub.docker.com' in parts[0]:
+ if 'index.docker.io' in parts[0]:
raise errors.InvalidRepository(
'Invalid repository name, try "{0}" instead'.format(parts[1])
)