Fix env_order in state.py

Fixes #42165
This commit is contained in:
matt 2017-09-08 17:10:07 +02:00 committed by rallytime
parent 0d3fd3d374
commit 3fb42bc238

View file

@ -2906,7 +2906,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']: