mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Defaults to current saltenv in state.sls
This commit is contained in:
parent
da8bca09aa
commit
0727af9e3d
1 changed files with 4 additions and 1 deletions
|
@ -354,7 +354,7 @@ def highstate(test=None,
|
|||
|
||||
|
||||
def sls(mods,
|
||||
saltenv='base',
|
||||
saltenv=None,
|
||||
test=None,
|
||||
exclude=None,
|
||||
queue=False,
|
||||
|
@ -411,6 +411,9 @@ def sls(mods,
|
|||
# Backwards compatibility
|
||||
saltenv = env
|
||||
|
||||
if saltenv is None:
|
||||
saltenv = __opts__['environment'] or 'base'
|
||||
|
||||
if queue:
|
||||
_wait(kwargs.get('__pub_jid'))
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue