mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Merge pull request #27907 from erchn/fix_cli_eauth
pass along kwargs data so gather_job_info so find_job will use eauth
This commit is contained in:
commit
35b5fb7e5f
@ -195,7 +195,7 @@ class LocalClient(object):
|
||||
# Looks like the timeout is invalid, use config
|
||||
return self.opts['timeout']
|
||||
|
||||
def gather_job_info(self, jid, tgt, tgt_type):
|
||||
def gather_job_info(self, jid, tgt, tgt_type, **kwargs):
|
||||
'''
|
||||
Return the information about a given job
|
||||
'''
|
||||
@ -207,6 +207,7 @@ class LocalClient(object):
|
||||
arg=[jid],
|
||||
expr_form=tgt_type,
|
||||
timeout=timeout,
|
||||
**kwargs
|
||||
)
|
||||
|
||||
if 'jid' in pub_data:
|
||||
@ -934,7 +935,7 @@ class LocalClient(object):
|
||||
# re-do the ping
|
||||
if time.time() > timeout_at and minions_running:
|
||||
# since this is a new ping, no one has responded yet
|
||||
jinfo = self.gather_job_info(jid, tgt, tgt_type)
|
||||
jinfo = self.gather_job_info(jid, tgt, tgt_type, **kwargs)
|
||||
minions_running = False
|
||||
# if we weren't assigned any jid that means the master thinks
|
||||
# we have nothing to send
|
||||
@ -1252,7 +1253,8 @@ class LocalClient(object):
|
||||
timeout=timeout,
|
||||
tgt=tgt,
|
||||
tgt_type=tgt_type,
|
||||
expect_minions=(verbose or show_timeout)
|
||||
expect_minions=(verbose or show_timeout),
|
||||
**kwargs
|
||||
):
|
||||
return_count = return_count + 1
|
||||
if progress:
|
||||
|
Loading…
Reference in New Issue
Block a user