diff options
author | Joffrey F <joffrey@docker.com> | 2018-06-08 15:14:06 -0700 |
---|---|---|
committer | Joffrey F <joffrey@docker.com> | 2018-06-08 15:24:56 -0700 |
commit | 9d8ea53149b21ff64d1fa5911eecb54ff3dc2244 (patch) | |
tree | a25cc3cbe4dd35da5131b522846c0d8cbfe25246 /docker/api/daemon.py | |
parent | 2d0c5dd484e7621a9859ab40ac43d25a1f5f5078 (diff) | |
download | docker-py-c5930-credstore-env.tar.gz |
Allow passing of env overrides to credstore through APIClient ctorc5930-credstore-env
Signed-off-by: Joffrey F <joffrey@docker.com>
Diffstat (limited to 'docker/api/daemon.py')
-rw-r--r-- | docker/api/daemon.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docker/api/daemon.py b/docker/api/daemon.py index fc3692c..76a94cf 100644 --- a/docker/api/daemon.py +++ b/docker/api/daemon.py @@ -128,7 +128,9 @@ class DaemonApiMixin(object): elif not self._auth_configs: self._auth_configs = auth.load_config() - authcfg = auth.resolve_authconfig(self._auth_configs, registry) + authcfg = auth.resolve_authconfig( + self._auth_configs, registry, credstore_env=self.credstore_env, + ) # If we found an existing auth config for this registry and username # combination, we can return it immediately unless reauth is requested. if authcfg and authcfg.get('username', None) == username \ |