summaryrefslogtreecommitdiffstats
path: root/roles/lib_openshift/src
diff options
context:
space:
mode:
authorJose A. Rivera <jarrpa@redhat.com>2017-05-12 10:15:29 -0500
committerJose A. Rivera <jarrpa@redhat.com>2017-05-19 11:44:54 -0500
commitc20195d037c7e0f32cc3f115011918d84e2984d8 (patch)
tree65ae843f749553d74b4bb0cd4018fd5a49486881 /roles/lib_openshift/src
parent963c7c90af3358014faccd0eb60f3476d14985f4 (diff)
downloadopenshift-c20195d037c7e0f32cc3f115011918d84e2984d8.tar.gz
openshift-c20195d037c7e0f32cc3f115011918d84e2984d8.tar.bz2
openshift-c20195d037c7e0f32cc3f115011918d84e2984d8.tar.xz
openshift-c20195d037c7e0f32cc3f115011918d84e2984d8.zip
lib/base: Allow for more complex template params
This change allows for the specification of JSON objects like lists as parameters to templates. Signed-off-by: Jose A. Rivera <jarrpa@redhat.com>
Diffstat (limited to 'roles/lib_openshift/src')
-rw-r--r--roles/lib_openshift/src/lib/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/lib_openshift/src/lib/base.py b/roles/lib_openshift/src/lib/base.py
index 2bf795e25..70755187e 100644
--- a/roles/lib_openshift/src/lib/base.py
+++ b/roles/lib_openshift/src/lib/base.py
@@ -128,7 +128,7 @@ class OpenShiftCLI(object):
else:
cmd.append(template_name)
if params:
- param_str = ["{}={}".format(key, value) for key, value in params.items()]
+ param_str = ["{}={}".format(key, str(value).replace("'", r'"')) for key, value in params.items()]
cmd.append('-v')
cmd.extend(param_str)