summaryrefslogtreecommitdiffstats
path: root/roles/lib_openshift/src
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2017-10-02 19:17:48 -0700
committerGitHub <noreply@github.com>2017-10-02 19:17:48 -0700
commita148a0f2768e37f212a12c21e6dda4c02b80143c (patch)
tree905ca642522df468a8501b5cf18f87449dd00f8a /roles/lib_openshift/src
parentbabe5e079571912c4a9367c02e825ae38e603284 (diff)
parent2d48094b2a731519a00794822c17a313e4d45d42 (diff)
downloadopenshift-a148a0f2768e37f212a12c21e6dda4c02b80143c.tar.gz
openshift-a148a0f2768e37f212a12c21e6dda4c02b80143c.tar.bz2
openshift-a148a0f2768e37f212a12c21e6dda4c02b80143c.tar.xz
openshift-a148a0f2768e37f212a12c21e6dda4c02b80143c.zip
Merge pull request #5608 from jarrpa/empty-option
Automatic merge from submit-queue. lib/base: Allow for empty option value Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1483923 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: