MCPcopy
hub / github.com/saltstack/salt / succeed_without_changes

Function succeed_without_changes

salt/states/test.py:87–99  ·  view source on GitHub ↗

.. versionadded:: 2014.7.0 Returns successful name A unique string to serve as the state's ID

(name, **kwargs)

Source from the content-addressed store, hash-verified

85
86
87def succeed_without_changes(name, **kwargs): # pylint: disable=unused-argument
88 """
89 .. versionadded:: 2014.7.0
90
91 Returns successful
92
93 name
94 A unique string to serve as the state's ID
95 """
96 comment = kwargs.get("comment", "Success!")
97
98 ret = {"name": name, "changes": {}, "result": True, "comment": comment}
99 return ret
100
101
102def fail_without_changes(name, **kwargs): # pylint: disable=unused-argument

Callers 1

nopFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected