aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJake Hunsaker <jhunsake@redhat.com>2020-03-25 14:00:21 -0400
committerJake Hunsaker <jhunsake@redhat.com>2020-04-08 09:27:16 -0400
commit36ed5f9e9617836bed0c8c1975a097d1ebbfe0ee (patch)
tree3229bd834f27a7943b8bc0acfe1e1eabcf21b991
parentb8338c6ebd4d82baeea5ed40b0d9133d5c66907e (diff)
downloadsos-36ed5f9e9617836bed0c8c1975a097d1ebbfe0ee.tar.gz
[sos] Fix bad imports/typos
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
-rw-r--r--sos/__init__.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/sos/__init__.py b/sos/__init__.py
index 6b1be16f..73e60def 100644
--- a/sos/__init__.py
+++ b/sos/__init__.py
@@ -25,8 +25,7 @@ if six.PY3:
else:
from ConfigParser import ConfigParser, ParsingError, Error
-from sos.report import SoSReport
-from sos.options import SoSListOption
+from sos.options import SosListOption
class SoSComponent():
@@ -66,10 +65,11 @@ class SoS():
self.cmdline = args
usage_string = "%(prog)s component [options]\n\n"
# define the local subcommands that exist on the system
- self._components = {'report': SoSReport}
+ import sos.report
+ self._components = {'report': sos.report.SoSReport}
# build the top-level parser
self.parser = ArgumentParser(usage=usage_string)
- self.parser.register('action', 'extend', SoSListOption)
+ self.parser.register('action', 'extend', SosListOption)
# set the component subparsers
self.subparsers = self.parser.add_subparsers(
dest='component',
@@ -81,7 +81,7 @@ class SoS():
# for the component subparsers
for comp in self._components:
_com_subparser = self.subparsers.add_parser(comp)
- _com_subparser.register('action', 'extend', SoSListOption)
+ _com_subparser.register('action', 'extend', SosListOption)
self._add_common_options(_com_subparser)
self._components[comp].add_parser_options(_com_subparser)
self.args = self.parser.parse_args()