diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2013-11-18 13:05:00 +0000 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2013-11-18 13:05:00 +0000 |
commit | 34e0eafc6ad0b09b7bc9db4f3272547020eb03cc (patch) | |
tree | 7e653fa2747575ac301aa34c71373dd8413dac29 | |
parent | 442e727de62ba8ba5efd808f0f22f7409132e35b (diff) | |
download | sos-34e0eafc6ad0b09b7bc9db4f3272547020eb03cc.tar.gz |
Revert change to --plugin-options parser action
Commit 6ea48cb changed the action for the -k/--plugin-option
command line argument from 'extend' to 'append'. This breaks the
handling of options that are chained with a ',':
logs.logsize 1,logs.all_logs max size (MiB) to collect per syslog file
logs.all_logs off collect all log files defined in syslog.conf
vs:
logs.logsize 1 max size (MiB) to collect per syslog file
logs.all_logs on collect all log files defined in syslog.conf
Revert to an 'append' action for this switch.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r-- | sos/sosreport.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/sosreport.py b/sos/sosreport.py index b97dde91..1eb0918b 100644 --- a/sos/sosreport.py +++ b/sos/sosreport.py @@ -485,7 +485,7 @@ class SoSOptions(object): parser.add_option("-o", "--only-plugins", action="extend", dest="onlyplugins", type="string", help="enable these plugins only", default = deque()) - parser.add_option("-k", "--plugin-option", action="append", + parser.add_option("-k", "--plugin-option", action="extend", dest="plugopts", type="string", help="plugin options in plugname.option=value format (see -l)", default = deque()) |