mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #31683 from rallytime/bp-31578
Back-port #31578 to 2015.5
This commit is contained in:
commit
e33c1f456a
1 changed files with 6 additions and 1 deletions
|
@ -56,7 +56,8 @@ def state(
|
|||
fail_minions=None,
|
||||
allow_fail=0,
|
||||
concurrent=False,
|
||||
timeout=None):
|
||||
timeout=None,
|
||||
queue=False):
|
||||
'''
|
||||
Invoke a state run on a given target
|
||||
|
||||
|
@ -117,6 +118,9 @@ def state(
|
|||
for use when multiple state runs can safely be run at the same
|
||||
Do not use this flag for performance optimization.
|
||||
|
||||
queue
|
||||
Pass ``queue=true`` through to the state function
|
||||
|
||||
Examples:
|
||||
|
||||
Run a list of sls files via :py:func:`state.sls <salt.state.sls>` on target
|
||||
|
@ -205,6 +209,7 @@ def state(
|
|||
cmd_kw['kwarg']['pillar'] = pillar
|
||||
|
||||
cmd_kw['kwarg']['saltenv'] = __env__
|
||||
cmd_kw['kwarg']['queue'] = queue
|
||||
|
||||
if isinstance(concurrent, bool):
|
||||
cmd_kw['kwarg']['concurrent'] = concurrent
|
||||
|
|
Loading…
Add table
Reference in a new issue