Fix env_order in state.py

Fixes #42165
This commit is contained in:
matt 2017-09-08 17:10:07 +02:00
parent ab1b099730
commit e93a962980

View file

@ -3100,7 +3100,7 @@ class BaseHighState(object):
Returns:
{'saltenv': ['state1', 'state2', ...]}
'''
matches = {}
matches = DefaultOrderedDict(OrderedDict)
# pylint: disable=cell-var-from-loop
for saltenv, body in six.iteritems(top):
if self.opts['environment']: