diff options
author | Jake Hunsaker <jhunsake@redhat.com> | 2020-03-27 10:21:25 -0400 |
---|---|---|
committer | Jake Hunsaker <jhunsake@redhat.com> | 2020-04-08 09:27:16 -0400 |
commit | 51652e384487ebf50142447b99ccac37cddf4872 (patch) | |
tree | 1e8c1d92e901a6d3312c192591f91a495695ca82 | |
parent | e2aa3e021971e2c3b01b1c4d06c15efc688691c8 (diff) | |
download | sos-51652e384487ebf50142447b99ccac37cddf4872.tar.gz |
[options] Ensure verbosity is an int
When loading from a config file, ensure that verbosity is set to and
integer rather than a string.
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
-rw-r--r-- | sos/options.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/options.py b/sos/options.py index 06a0f910..89fa5587 100644 --- a/sos/options.py +++ b/sos/options.py @@ -185,7 +185,7 @@ class SoSOptions(): odict = dict(config.items("general")) # handle verbose explicitly if 'verbose' in odict.keys(): - odict['verbosity'] = odict.pop('verbose') + odict['verbosity'] = int(odict.pop('verbose')) # convert options names for key in odict.keys(): if '-' in key: |