diff --git a/src/common/core.py b/src/common/core.py index 8b1726f..52c43c9 100644 --- a/src/common/core.py +++ b/src/common/core.py @@ -301,7 +301,6 @@ def gather_function(self, function_type, opt): from_option=Util.get_option(options, 'from'), to_option=Util.get_option(options, 'to'), since=Util.get_option(options, 'since'), - scope=Util.get_option(options, 'scope'), grep=Util.get_option(options, 'grep'), store_dir=Util.get_option(options, 'store_dir'), temp_dir=Util.get_option(options, 'temp_dir'), @@ -315,7 +314,6 @@ def gather_function(self, function_type, opt): from_option=Util.get_option(options, 'from'), to_option=Util.get_option(options, 'to'), since=Util.get_option(options, 'since'), - scope=Util.get_option(options, 'scope'), grep=Util.get_option(options, 'grep'), store_dir=Util.get_option(options, 'store_dir'), temp_dir=Util.get_option(options, 'temp_dir'), diff --git a/src/handler/gather/gather_component_log.py b/src/handler/gather/gather_component_log.py index b2b8c61..ea9731b 100644 --- a/src/handler/gather/gather_component_log.py +++ b/src/handler/gather/gather_component_log.py @@ -81,6 +81,8 @@ def init(self, context, *args, **kwargs): self.to_option = self.to_option.strip() self.since_option = kwargs.get('since', None) self.scope = kwargs.get('scope', None) + if isinstance(self.scope, bool): + self.scope = "all" self.grep = kwargs.get('grep', None) self.store_dir = kwargs.get('store_dir', None) self.temp_dir = kwargs.get('temp_dir', None)