mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +00:00
remove extra call to time_auth
This commit is contained in:
parent
c3a2355a62
commit
77daaa31ea
@ -1715,12 +1715,14 @@ class ClearFuncs(object):
|
|||||||
if not found:
|
if not found:
|
||||||
log.warning('Authentication failure of type "eauth" occurred.')
|
log.warning('Authentication failure of type "eauth" occurred.')
|
||||||
return ''
|
return ''
|
||||||
if not self.loadauth.time_auth(clear_load):
|
|
||||||
log.warning('Authentication failure of type "eauth" occurred.')
|
|
||||||
return ''
|
|
||||||
|
|
||||||
clear_load['groups'] = groups
|
clear_load['groups'] = groups
|
||||||
return self.loadauth.mk_token(clear_load)
|
token = self.loadauth.mk_token(clear_load)
|
||||||
|
if not token:
|
||||||
|
log.warning('Authentication failure of type "eauth" occurred.')
|
||||||
|
return ''
|
||||||
|
else:
|
||||||
|
return token
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
type_, value_, traceback_ = sys.exc_info()
|
type_, value_, traceback_ = sys.exc_info()
|
||||||
log.error(
|
log.error(
|
||||||
|
Loading…
Reference in New Issue
Block a user