Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: gather all not support scope option #644

Merged
merged 10 commits into from
Dec 19, 2024
2 changes: 0 additions & 2 deletions src/common/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand All @@ -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'),
Expand Down
2 changes: 2 additions & 0 deletions src/handler/gather/gather_component_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Loading