mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #51937 from garethgreenaway/51821_ensure_result_comment_changes_valid_arguments
[2019.2] Fix to test state functions to allow arguments that mod_watch uses
This commit is contained in:
commit
d3159cb6b4
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