diff --git a/salt/modules/state.py b/salt/modules/state.py index f9194743ee..73b3fd5fb7 100644 --- a/salt/modules/state.py +++ b/salt/modules/state.py @@ -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: