Skip to content

Commit

Permalink
fix: gather all not support scope option (#644)
Browse files Browse the repository at this point in the history
* fix: conf path

* fix: conf path

* remote_client support strict_host_key_checking

* Clean rca old *scene.py files

* fix some bugs

* fix: gather all not support scope option
  • Loading branch information
wayyoungboy authored Dec 19, 2024
1 parent 941ab87 commit ca81a36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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

0 comments on commit ca81a36

Please sign in to comment.