Updating the slack engine in 2016.11 to pass the args and kwrags correctly to LocalClient

This commit is contained in:
Gareth J. Greenaway 2017-07-20 16:50:42 -07:00
parent 42bb1a64ca
commit 635810b3e3

View file

@ -202,7 +202,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)
ret = local.cmd('{0}'.format(target), cmd, arg=args, kwarg=kwargs)
if ret:
return_text = json.dumps(ret, sort_keys=True, indent=1)