From bc84ed11ec7f7e20f27139a5e44ae0862d5a1f7b Mon Sep 17 00:00:00 2001 From: Joffrey F Date: Fri, 30 Nov 2018 15:40:14 -0800 Subject: Fix empty authconfig detection Signed-off-by: Joffrey F --- docker/api/build.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docker/api/build.py') diff --git a/docker/api/build.py b/docker/api/build.py index c4fc37e..5db5838 100644 --- a/docker/api/build.py +++ b/docker/api/build.py @@ -286,10 +286,10 @@ class BuildApiMixin(object): # If we don't have any auth data so far, try reloading the config # file one more time in case anything showed up in there. - if not self._auth_configs: + if not self._auth_configs or self._auth_configs.is_empty: log.debug("No auth config in memory - loading from filesystem") self._auth_configs = auth.load_config( - credsore_env=self.credsore_env + credstore_env=self.credstore_env ) # Send the full auth configuration (if any exists), since the build -- cgit v1.2.1