aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2018-06-21 16:59:57 +0100
committerBryn M. Reeves <bmr@redhat.com>2018-06-21 16:59:57 +0100
commit327061c5af0fb5935180984bd4cee13bdd22e043 (patch)
tree8dcb59cd5a5cafe124f6f456b87ce1f1c7d1ee93
parent7a72fd613837f39f3f17a8266b50e65305c36126 (diff)
downloadsos-327061c5af0fb5935180984bd4cee13bdd22e043.tar.gz
[sos] SoSOptions: always compare strings when filtering arguments
Use string-string comparison when testing option values against defaults in order to filter out default valued arguments from display listings. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/__init__.py b/sos/__init__.py
index b530bd82..33cbdcd9 100644
--- a/sos/__init__.py
+++ b/sos/__init__.py
@@ -237,7 +237,7 @@ class SoSOptions(object):
if not value or value in null_values:
return False
if name in _arg_defaults:
- if value == str(_arg_defaults[name]):
+ if str(value) == str(_arg_defaults[name]):
return False
return True