mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Merge pull request #11370 from makinacorpus/hfix5
state.saltmod: kwarg support
This commit is contained in:
commit
4681b30224
@ -232,6 +232,7 @@ def function(
|
||||
expr_form=None,
|
||||
ret='',
|
||||
arg=None,
|
||||
kwarg=None,
|
||||
timeout=None):
|
||||
'''
|
||||
Execute a single module function on a remote minion via salt or salt-ssh
|
||||
@ -248,13 +249,18 @@ def function(
|
||||
arg
|
||||
The list of arguments to pass into the function
|
||||
|
||||
kwargs
|
||||
The list of keyword arguments to pass into the function
|
||||
|
||||
ret
|
||||
Optionally set a single or a list of returners to use
|
||||
|
||||
ssh
|
||||
Set to `True` to use the ssh client instaed of the standard salt client
|
||||
'''
|
||||
cmd_kw = {'arg': arg or [], 'ret': ret, 'timeout': timeout}
|
||||
if not kwarg:
|
||||
kwarg = {}
|
||||
cmd_kw = {'arg': arg or [], 'kwarg': kwarg, 'ret': ret, 'timeout': timeout}
|
||||
|
||||
ret = {'name': name,
|
||||
'changes': {},
|
||||
|
Loading…
Reference in New Issue
Block a user