aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJake Hunsaker <jhunsake@redhat.com>2020-03-27 10:08:38 -0400
committerJake Hunsaker <jhunsake@redhat.com>2020-04-08 09:27:16 -0400
commit9e7c041a01d60f92d1cda5d1cbfb3d73029d7e68 (patch)
tree10b6d20684632ba91951e83363fb970968f0e35d
parentda64806336f9ec1d1986206b055cd85e1e08c720 (diff)
downloadsos-9e7c041a01d60f92d1cda5d1cbfb3d73029d7e68.tar.gz
[options] Cast arg_names to list instead of dict_keys
For python3, calling `.keys()` on a dict no longer returns a list, so we need to explicitly make it a list of values to behave as expected. Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
-rw-r--r--sos/options.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/options.py b/sos/options.py
index 4631ac75..06a0f910 100644
--- a/sos/options.py
+++ b/sos/options.py
@@ -96,7 +96,7 @@ class SoSOptions():
:returns: the new ``SoSOptions`` object.
"""
self.arg_defaults = arg_defaults
- self.arg_names = arg_defaults.keys()
+ self.arg_names = list(arg_defaults.keys())
self._nondefault = set()
# first load the defaults, if supplied
for arg in self.arg_defaults: