mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
stateful is optional argument
This commit is contained in:
parent
13e9c06d82
commit
fc9dd8c6c8
@ -562,7 +562,7 @@ def mod_watch(name, **kwargs):
|
||||
Execute a cmd function based on a watch call
|
||||
'''
|
||||
if kwargs['sfun'] == 'wait' or kwargs['sfun'] == 'run':
|
||||
if kwargs['stateful']:
|
||||
if kwargs.get('stateful'):
|
||||
kwargs.pop('stateful')
|
||||
return _reinterpreted_state(
|
||||
_delegate_to_state(
|
||||
@ -572,7 +572,7 @@ def mod_watch(name, **kwargs):
|
||||
)
|
||||
return run(name, **kwargs)
|
||||
elif kwargs['sfun'] == 'wait_script' or kwargs['sfun'] == 'script':
|
||||
if kwargs['stateful']:
|
||||
if kwargs.get('stateful'):
|
||||
kwargs.pop('stateful')
|
||||
return _reinterpreted_state(
|
||||
_delegate_to_state(
|
||||
|
Loading…
Reference in New Issue
Block a user