mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add sync_wrapper
to saltutil
state module
This commit is contained in:
parent
c81e8f045b
commit
31cf73704f
2 changed files with 17 additions and 0 deletions
|
@ -349,3 +349,17 @@ def sync_serializers(name, **kwargs):
|
|||
- refresh: True
|
||||
"""
|
||||
return _sync_single(name, "serializers", **kwargs)
|
||||
|
||||
|
||||
def sync_wrapper(name, **kwargs):
|
||||
"""
|
||||
Performs the same task as saltutil.sync_wrapper module
|
||||
See :mod:`saltutil module for full list of options <salt.modules.saltutil>`
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
sync_everything:
|
||||
saltutil.sync_wrapper:
|
||||
- refresh: True
|
||||
"""
|
||||
return _sync_single(name, "wrapper", **kwargs)
|
||||
|
|
|
@ -36,6 +36,7 @@ def test_saltutil_sync_all_nochange():
|
|||
"pillar": [],
|
||||
"matchers": [],
|
||||
"serializers": [],
|
||||
"wrapper": [],
|
||||
}
|
||||
state_id = "somename"
|
||||
state_result = {
|
||||
|
@ -71,6 +72,7 @@ def test_saltutil_sync_all_test():
|
|||
"pillar": [],
|
||||
"matchers": [],
|
||||
"serializers": [],
|
||||
"wrapper": [],
|
||||
}
|
||||
state_id = "somename"
|
||||
state_result = {
|
||||
|
@ -107,6 +109,7 @@ def test_saltutil_sync_all_change():
|
|||
"pillar": [],
|
||||
"matchers": [],
|
||||
"serializers": [],
|
||||
"wrapper": [],
|
||||
}
|
||||
state_id = "somename"
|
||||
state_result = {
|
||||
|
|
Loading…
Add table
Reference in a new issue