mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Handle case where we miss first sign-in
This commit is contained in:
parent
02995a1055
commit
d626d83c7d
@ -419,7 +419,10 @@ class AsyncAuth(object):
|
||||
continue
|
||||
break
|
||||
if not isinstance(creds, dict) or 'aes' not in creds:
|
||||
del AsyncAuth.creds_map[self.__key(self.opts)]
|
||||
try:
|
||||
del AsyncAuth.creds_map[self.__key(self.opts)]
|
||||
except KeyError:
|
||||
pass
|
||||
self._authenticate_future.set_exception(
|
||||
SaltClientError('Attempt to authenticate with the salt master failed')
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user