mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Import OrderedDict
from salt.utils.odic
for backwards compatability
This commit is contained in:
parent
655da0bd5c
commit
dc503a09c7
@ -153,7 +153,9 @@ More complete example
|
||||
# Import python libs
|
||||
from contextlib import contextmanager
|
||||
import logging
|
||||
import collections
|
||||
|
||||
# Import Salt libs
|
||||
from salt.utils.odict import OrderedDict
|
||||
|
||||
# Set up logging
|
||||
log = logging.getLogger(__name__)
|
||||
@ -318,8 +320,8 @@ class merger(object):
|
||||
This function takes a list of database results and iterates over,
|
||||
merging them in to a dict form.
|
||||
'''
|
||||
listify = collections.OrderedDict()
|
||||
listify_dicts = collections.OrderedDict()
|
||||
listify = OrderedDict()
|
||||
listify_dicts = OrderedDict()
|
||||
for ret in rows:
|
||||
# crd is the Current Return Data level, to make this non-recursive.
|
||||
crd = self.focus
|
||||
|
Loading…
Reference in New Issue
Block a user