summaryrefslogtreecommitdiffstats
path: root/roles/lib_openshift/library/oc_adm_policy_user.py
diff options
context:
space:
mode:
authorKenny Woodson <kwoodson@redhat.com>2017-03-07 16:39:52 -0500
committerKenny Woodson <kwoodson@redhat.com>2017-03-07 16:39:52 -0500
commite2bad8efff2aaee4906575bc523c57bffa924715 (patch)
tree56905b6f8d7b3dbaf2e122940885aab0b97eb94a /roles/lib_openshift/library/oc_adm_policy_user.py
parentde554f408404502319f8bccc8e51f8ab3e7b2ed6 (diff)
downloadopenshift-e2bad8efff2aaee4906575bc523c57bffa924715.tar.gz
openshift-e2bad8efff2aaee4906575bc523c57bffa924715.tar.bz2
openshift-e2bad8efff2aaee4906575bc523c57bffa924715.tar.xz
openshift-e2bad8efff2aaee4906575bc523c57bffa924715.zip
Fix to OpenshiftCLIConfig to support an ordereddict. This was breaking test cases.
Diffstat (limited to 'roles/lib_openshift/library/oc_adm_policy_user.py')
-rw-r--r--roles/lib_openshift/library/oc_adm_policy_user.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/roles/lib_openshift/library/oc_adm_policy_user.py b/roles/lib_openshift/library/oc_adm_policy_user.py
index 91bd85122..f76295fb9 100644
--- a/roles/lib_openshift/library/oc_adm_policy_user.py
+++ b/roles/lib_openshift/library/oc_adm_policy_user.py
@@ -33,6 +33,7 @@
from __future__ import print_function
import atexit
+import collections
import copy
import json
import os
@@ -1330,7 +1331,7 @@ class OpenShiftCLIConfig(object):
self.kubeconfig = kubeconfig
self.name = rname
self.namespace = namespace
- self._options = options
+ self._options = collections.OrderedDict(options)
@property
def config_options(self):