Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions docker/api/daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ def login(self, username, password=None, email=None, registry=None,
elif not self._auth_configs:
self._auth_configs = auth.load_config()

registry = registry or auth.INDEX_URL

authcfg = auth.resolve_authconfig(self._auth_configs, registry)
# If we found an existing auth config for this registry and username
# combination, we can return it immediately unless reauth is requested.
Expand All @@ -67,7 +65,7 @@ def login(self, username, password=None, email=None, registry=None,

response = self._post_json(self._url('/auth'), data=req_data)
if response.status_code == 200:
self._auth_configs[registry] = req_data
self._auth_configs[registry or auth.INDEX_NAME] = req_data
return self._result(response, json=True)

def ping(self):
Expand Down