mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Ensure the comment, changes, and result are valid arguments for various test state functions as they are valid arguments for mod_watch.
This commit is contained in:
parent
37320048ce
commit
5527dff2ea
1 changed files with 4 additions and 4 deletions
|
@ -67,7 +67,7 @@ def nop(name, **kwargs):
|
|||
return succeed_without_changes(name)
|
||||
|
||||
|
||||
def succeed_without_changes(name):
|
||||
def succeed_without_changes(name, **kwargs):
|
||||
'''
|
||||
Returns successful.
|
||||
|
||||
|
@ -85,7 +85,7 @@ def succeed_without_changes(name):
|
|||
return ret
|
||||
|
||||
|
||||
def fail_without_changes(name):
|
||||
def fail_without_changes(name, **kwargs):
|
||||
'''
|
||||
Returns failure.
|
||||
|
||||
|
@ -108,7 +108,7 @@ def fail_without_changes(name):
|
|||
return ret
|
||||
|
||||
|
||||
def succeed_with_changes(name):
|
||||
def succeed_with_changes(name, **kwargs):
|
||||
'''
|
||||
Returns successful and changes is not empty
|
||||
|
||||
|
@ -141,7 +141,7 @@ def succeed_with_changes(name):
|
|||
return ret
|
||||
|
||||
|
||||
def fail_with_changes(name):
|
||||
def fail_with_changes(name, **kwargs):
|
||||
'''
|
||||
Returns failure and changes is not empty.
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue