summaryrefslogtreecommitdiff
path: root/docker/auth/auth.py
diff options
context:
space:
mode:
authorAlejandro Brito Monedero <abrito@alea-soluciones.com>2015-10-27 09:03:28 +0100
committerAlejandro Brito Monedero <abrito@alea-soluciones.com>2015-10-27 09:03:28 +0100
commit22da6ace7a755885489aafbe2003cbb2f0c253cd (patch)
treeba67c4c896ff9b42378754fe07d49a3f34dab7c8 /docker/auth/auth.py
parent0234ddebf30b2c979d0fb75ea72280e4f35fec35 (diff)
downloaddocker-py-22da6ace7a755885489aafbe2003cbb2f0c253cd.tar.gz
Fix auth.load_config bug calling parse_auth
When load_config found and auths section it didn't call parse_auth only with the auths section. Instead it called parse_auth with all the configuration. There is also a test to check this case Signed-off-by: Alejandro Brito Monedero <alejandro.monedero@gmail.com>
Diffstat (limited to 'docker/auth/auth.py')
-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 b02c3ed..2ed894e 100644
--- a/docker/auth/auth.py
+++ b/docker/auth/auth.py
@@ -172,7 +172,7 @@ def load_config(config_path=None):
data = json.load(f)
if data.get('auths'):
log.debug("Found 'auths' section")
- return parse_auth(data)
+ return parse_auth(data['auths'])
else:
log.debug("Couldn't find 'auths' section")
f.seek(0)