Add sync_wrapper to saltutil state module

This commit is contained in:
jeanluc 2023-06-21 22:15:46 +02:00 committed by Megan Wilhite
parent c81e8f045b
commit 31cf73704f
2 changed files with 17 additions and 0 deletions

View file

@ -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)

View file

@ -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 = {