Merge pull request #42548 from gtmanfred/2017.7.1

pass in empty kwarg for reactor
This commit is contained in:
garethgreenaway 2017-07-25 17:41:19 -07:00 committed by GitHub
commit 711b742c54
2 changed files with 3 additions and 3 deletions

View File

@ -577,8 +577,6 @@ class Compiler(object):
if '__env__' in body:
chunk['__env__'] = body['__env__']
chunk['__id__'] = name
chunk['arg'] = []
chunk['kwarg'] = {}
for arg in run:
if isinstance(arg, six.string_types):
funcs.add(arg)
@ -591,7 +589,7 @@ class Compiler(object):
names.append(_name)
continue
else:
chunk['kwarg'].update(arg)
chunk.update(arg)
if names:
name_order = 1
for entry in names:

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'):