pass in empty kwarg for reactor

This commit is contained in:
Daniel Wallace 2017-07-25 15:34:44 -06:00
parent b948e980d2
commit 0257c1dc32
2 changed files with 3 additions and 3 deletions

View file

@ -571,9 +571,7 @@ class Compiler(object):
if state.startswith('__'):
continue
chunk = {'state': state,
'name': name,
'arg': [],
'kwarg': {}}
'name': name}
if '__sls__' in body:
chunk['__sls__'] = body['__sls__']
if '__env__' in body:

View file

@ -273,6 +273,8 @@ class ReactWrap(object):
try:
f_call = salt.utils.format_call(l_fun, low)
kwargs = f_call.get('kwargs', {})
if 'kwarg' not in kwargs:
kwargs['kwarg'] = {}
# TODO: Setting the user doesn't seem to work for actual remote publishes
if low['state'] in ('runner', 'wheel'):