mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Updating the slack engine in 2017.7 to pass the args and kwrags correctly to LocalClient
This commit is contained in:
parent
33e90be1fe
commit
f411cfc2a9
@ -255,7 +255,7 @@ def start(token,
|
||||
# Default to trying to run as a client module.
|
||||
else:
|
||||
local = salt.client.LocalClient()
|
||||
ret = local.cmd('{0}'.format(target), cmd, args, kwargs, tgt_type='{0}'.format(tgt_type))
|
||||
ret = local.cmd('{0}'.format(target), cmd, arg=args, kwarg=kwargs, tgt_type='{0}'.format(tgt_type))
|
||||
|
||||
if ret:
|
||||
return_text = json.dumps(ret, sort_keys=True, indent=1)
|
||||
|
Loading…
Reference in New Issue
Block a user