summaryrefslogtreecommitdiff
path: root/ironic_python_agent/utils.py
diff options
context:
space:
mode:
authorJay Faulkner <jay@jvf.cc>2015-09-03 13:15:55 -0700
committerJay Faulkner <jay@jvf.cc>2015-09-03 13:15:55 -0700
commitd29b9af748f882faa1c3393dd4e50e7f46862201 (patch)
treeca58e7388c153ec3c25b8f477b174adf5b9801c5 /ironic_python_agent/utils.py
parentbc985934164d22a2ebf5fe6e5a361e9bba7f7d8b (diff)
downloadironic-python-agent-d29b9af748f882faa1c3393dd4e50e7f46862201.tar.gz
Remove ordereddict as 2.6 is no longer supported
ordereddict, and a related workaround method, were removed as we no longer support python 2.6. Collections contains ordereddict on newer python versions. Change-Id: I48cc55a5c56fbc1f71442fc858eb4905f0213988
Diffstat (limited to 'ironic_python_agent/utils.py')
-rw-r--r--ironic_python_agent/utils.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/ironic_python_agent/utils.py b/ironic_python_agent/utils.py
index c2d6a00d..53305f11 100644
--- a/ironic_python_agent/utils.py
+++ b/ironic_python_agent/utils.py
@@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-import collections
import copy
import glob
import os
@@ -46,15 +45,6 @@ SUPPORTED_ROOT_DEVICE_HINTS = set(('size', 'model', 'wwn', 'serial', 'vendor'))
AGENT_PARAMS_CACHED = dict()
-def get_ordereddict(*args, **kwargs):
- """A fix for py26 not having ordereddict."""
- try:
- return collections.OrderedDict(*args, **kwargs)
- except AttributeError:
- import ordereddict
- return ordereddict.OrderedDict(*args, **kwargs)
-
-
def execute(*cmd, **kwargs):
"""Convenience wrapper around oslo's execute() method."""
result = processutils.execute(*cmd, **kwargs)