diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2018-05-27 14:49:43 +0100 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2018-06-20 18:01:21 +0100 |
commit | 7d04b3884a7a529f5de184be62224c22132d29eb (patch) | |
tree | ad371d073aa6fee5f9053933138c097e9e909fdf | |
parent | ba667f3c322aef4b0e50e5248594baf0ac89b00b (diff) | |
download | sos-7d04b3884a7a529f5de184be62224c22132d29eb.tar.gz |
[sos] improve preset argument filtering
Preset arguments should not be included in presets: simplify the
filtering to use lists of filtered argument names.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r-- | sos/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sos/__init__.py b/sos/__init__.py index ed0fb044..543490ee 100644 --- a/sos/__init__.py +++ b/sos/__init__.py @@ -185,8 +185,8 @@ class SoSOptions(object): odict = {} for arg in _arg_names: value = getattr(self, arg) - # Do not attempt to store --add-preset <name> in presets - if arg == 'add_preset': + # Do not attempt to store preset option values in presets + if arg in ('add_preset', 'del_preset', 'desc', 'note'): value = None odict[arg] = value return odict |