Use saltenv opts instead of environment

This commit is contained in:
rallytime 2018-06-29 14:15:21 -04:00
parent 1c8bd35f28
commit 9498618418
No known key found for this signature in database
GPG key ID: E8F1A4B90D0DEA19

View file

@ -1263,7 +1263,7 @@ def sls(mods, test=None, exclude=None, queue=False, sync_mods=None, **kwargs):
for module_type in sync_mods:
try:
__salt__['saltutil.sync_{0}'.format(module_type)](
saltenv=opts['environment']
saltenv=opts['saltenv']
)
except KeyError:
log.warning(