Merge pull request #31683 from rallytime/bp-31578

Back-port #31578 to 2015.5
This commit is contained in:
Mike Place 2016-03-04 13:47:41 -07:00
commit e33c1f456a

View file

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