mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
args does not always exist (#37019)
When using the reactor on a minion, if you call something like ``` highstate_run: caller.state.apply: - tgt: blog.gtmanfred.com ``` Then the args in kwargs doesn't exist, so set a default to a list
This commit is contained in:
parent
c6254d59fd
commit
4e9824a65e
1 changed files with 1 additions and 1 deletions
|
@ -247,7 +247,7 @@ class ReactWrap(object):
|
|||
Wrap Caller to enable executing :ref:`caller modules <all-salt.caller>`
|
||||
'''
|
||||
log.debug("in caller with fun {0} args {1} kwargs {2}".format(fun, args, kwargs))
|
||||
args = kwargs['args']
|
||||
args = kwargs.get('args', [])
|
||||
if 'caller' not in self.client_cache:
|
||||
self.client_cache['caller'] = salt.client.Caller(self.opts['conf_file'])
|
||||
try:
|
||||
|
|
Loading…
Add table
Reference in a new issue