Skip to content

Commit

Permalink
Add saltutil.sync_executors state
Browse files Browse the repository at this point in the history
  • Loading branch information
max-arnold committed Nov 13, 2019
1 parent 321710e commit 2b99d34
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions salt/states/saltutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,20 @@ def sync_grains(name, **kwargs):
return _sync_single(name, "grains", **kwargs)


def sync_executors(name, **kwargs):
'''
Performs the same task as saltutil.sync_executors module
See :mod:`saltutil module for full list of options <salt.modules.saltutil>`
.. code-block:: yaml
sync_everything:
saltutil.sync_executors:
- refresh: True
'''
return _sync_single(name, "executors", **kwargs)


def sync_log_handlers(name, **kwargs):
'''
Performs the same task as saltutil.sync_log_handlers module
Expand Down

0 comments on commit 2b99d34

Please sign in to comment.