Merge pull request #43672 from rallytime/bp-43415

Back-port #43415 to 2016.11
This commit is contained in:
Mike Place 2017-09-21 10:38:55 -06:00 committed by GitHub
commit 1d4fa48209

View File

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