mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Make master tokens store the token as well
This commit is contained in:
parent
c5f4d7b625
commit
603466c8c4
@ -111,7 +111,8 @@ class LoadAuth(object):
|
||||
fcall = salt.utils.format_call(self.auth[fstr], load)
|
||||
tdata = {'start': time.time(),
|
||||
'expire': time.time() + self.opts['token_expire'],
|
||||
'name': fcall['args'][0],}
|
||||
'name': fcall['args'][0],
|
||||
'token': tok}
|
||||
with open(t_path, 'w+') as fp_:
|
||||
fp_.write(self.serial.dumps(tdata))
|
||||
return tok
|
||||
|
Loading…
Reference in New Issue
Block a user