diff options
author | Kenny Woodson <kwoodson@redhat.com> | 2017-03-08 13:03:35 -0500 |
---|---|---|
committer | Kenny Woodson <kwoodson@redhat.com> | 2017-03-08 13:32:27 -0500 |
commit | 49f46a7686cab15eb2ec9335ca00e9cd7eb547b3 (patch) | |
tree | 74ab2f9e445c6145cf7856ae81530c97fc55c021 /roles/lib_openshift/library/oc_route.py | |
parent | 842b69be27aa97bb1df5dde97029d6cbf82aebfb (diff) | |
download | openshift-49f46a7686cab15eb2ec9335ca00e9cd7eb547b3.tar.gz openshift-49f46a7686cab15eb2ec9335ca00e9cd7eb547b3.tar.bz2 openshift-49f46a7686cab15eb2ec9335ca00e9cd7eb547b3.tar.xz openshift-49f46a7686cab15eb2ec9335ca00e9cd7eb547b3.zip |
Removing ordereddict. Replaced with sorted keys.
Diffstat (limited to 'roles/lib_openshift/library/oc_route.py')
-rw-r--r-- | roles/lib_openshift/library/oc_route.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/roles/lib_openshift/library/oc_route.py b/roles/lib_openshift/library/oc_route.py index e487147dc..97dd310bc 100644 --- a/roles/lib_openshift/library/oc_route.py +++ b/roles/lib_openshift/library/oc_route.py @@ -33,7 +33,6 @@ from __future__ import print_function import atexit -import collections import copy import json import os @@ -1383,7 +1382,7 @@ class OpenShiftCLIConfig(object): self.kubeconfig = kubeconfig self.name = rname self.namespace = namespace - self._options = collections.OrderedDict(options) + self._options = options @property def config_options(self): @@ -1397,10 +1396,11 @@ class OpenShiftCLIConfig(object): def stringify(self): ''' return the options hash as cli params in a string ''' rval = [] - for key, data in self.config_options.items(): + for key in sorted(self.config_options.keys()): + data = self.config_options[key] if data['include'] \ and (data['value'] or isinstance(data['value'], int)): - rval.append('--%s=%s' % (key.replace('_', '-'), data['value'])) + rval.append('--{}={}'.format(key.replace('_', '-'), data['value'])) return rval |