summaryrefslogtreecommitdiffstats
path: root/roles/lib_openshift/src
diff options
context:
space:
mode:
authorJose A. Rivera <jarrpa@redhat.com>2017-09-29 17:40:00 -0500
committerJose A. Rivera <jarrpa@redhat.com>2017-09-29 17:51:54 -0500
commit2d48094b2a731519a00794822c17a313e4d45d42 (patch)
tree3c89e9910d210d488a1d386837a0aa26690e2e92 /roles/lib_openshift/src
parent1cd0a0c1165a4f274b30d7570f2e3ab2009e0046 (diff)
downloadopenshift-2d48094b2a731519a00794822c17a313e4d45d42.tar.gz
openshift-2d48094b2a731519a00794822c17a313e4d45d42.tar.bz2
openshift-2d48094b2a731519a00794822c17a313e4d45d42.tar.xz
openshift-2d48094b2a731519a00794822c17a313e4d45d42.zip
lib/base: Allow for empty option value
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 5a307cdb3..1fb32164e 100644
--- a/roles/lib_openshift/src/lib/base.py
+++ b/roles/lib_openshift/src/lib/base.py
@@ -597,7 +597,7 @@ class OpenShiftCLIConfig(object):
for key in sorted(self.config_options.keys()):
data = self.config_options[key]
if data['include'] \
- and (data['value'] or isinstance(data['value'], int)):
+ and (data['value'] is not None or isinstance(data['value'], int)):
if key == ascommalist:
val = ','.join(['{}={}'.format(kk, vv) for kk, vv in sorted(data['value'].items())])
else: