mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Switch LocalClient().cmd() to watch returns same as Salt's CLI
This commit is contained in:
parent
16cfaad061
commit
804c5995c7
@ -518,9 +518,20 @@ class LocalClient(object):
|
||||
if not pub_data:
|
||||
return pub_data
|
||||
|
||||
return self.get_returns(pub_data['jid'],
|
||||
pub_data['minions'],
|
||||
self._get_timeout(timeout))
|
||||
ret = {}
|
||||
for fn_ret in self.get_cli_event_returns(
|
||||
pub_data['jid'],
|
||||
pub_data['minions'],
|
||||
self._get_timeout(timeout),
|
||||
tgt,
|
||||
expr_form,
|
||||
**kwargs):
|
||||
|
||||
if fn_ret:
|
||||
for mid, data in fn_ret.items():
|
||||
ret[mid] = data.get('ret', {})
|
||||
|
||||
return ret
|
||||
|
||||
def cmd_cli(
|
||||
self,
|
||||
|
Loading…
Reference in New Issue
Block a user