mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Use salt's ordereddict for comparison
Last thing needed for 2.6 compat
This commit is contained in:
parent
0bc6027e68
commit
91eb7210bb
1 changed files with 2 additions and 2 deletions
|
@ -25,7 +25,7 @@ Example output::
|
|||
'''
|
||||
from __future__ import absolute_import
|
||||
# Import python libs
|
||||
import collections
|
||||
import salt.utils.odict
|
||||
from numbers import Number
|
||||
|
||||
# Import salt libs
|
||||
|
@ -130,7 +130,7 @@ class NestDisplay(object):
|
|||
)
|
||||
|
||||
# respect key ordering of ordered dicts
|
||||
if isinstance(ret, collections.OrderedDict):
|
||||
if isinstance(ret, salt.utils.odict.OrderedDict):
|
||||
keys = ret.keys()
|
||||
else:
|
||||
keys = sorted(ret)
|
||||
|
|
Loading…
Add table
Reference in a new issue