summaryrefslogtreecommitdiffstats
path: root/roles/lib_openshift/library/oc_edit.py
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/library/oc_edit.py
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/library/oc_edit.py')
-rw-r--r--roles/lib_openshift/library/oc_edit.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/lib_openshift/library/oc_edit.py b/roles/lib_openshift/library/oc_edit.py
index ad17051cb..0b6a8436b 100644
--- a/roles/lib_openshift/library/oc_edit.py
+++ b/roles/lib_openshift/library/oc_edit.py
@@ -1435,7 +1435,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: