Use salt's ordereddict for comparison

Last thing needed for 2.6 compat
This commit is contained in:
Mike Place 2017-02-24 13:44:54 -07:00
parent 0bc6027e68
commit 91eb7210bb
No known key found for this signature in database
GPG key ID: 9136F4F13705CFD3

View file

@ -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)