2424#
2525###############################################################################
2626import re
27- from typing import ClassVar
2827
2928from nodescraper .models import AnalyzerArgs
3029from nodescraper .plugins .inband .kernel_module .kernel_module_data import (
3433
3534class KernelModuleAnalyzerArgs (AnalyzerArgs ):
3635 kernel_modules : dict [str , dict ] = {}
37-
38- DEFAULT_REGEX_FILTER : ClassVar [list [str ]] = ["amd" ]
39- DEFAULT_REGEX_MATCH : ClassVar [bool ] = True
40- regex_filter : list [str ] = DEFAULT_REGEX_FILTER
41- regex_match : bool = DEFAULT_REGEX_MATCH
36+ regex_filter : list [str ] = ["amd" ]
4237
4338 @classmethod
4439 def build_from_model (cls , datamodel : KernelModuleDataModel ) -> "KernelModuleAnalyzerArgs" :
@@ -51,7 +46,7 @@ def build_from_model(cls, datamodel: KernelModuleDataModel) -> "KernelModuleAnal
5146 KernelModuleAnalyzerArgs: instance of analyzer args class
5247 """
5348
54- pattern_regex = re .compile ("|" . join ( cls . DEFAULT_REGEX_FILTER ) , re .IGNORECASE )
49+ pattern_regex = re .compile ("amd" , re .IGNORECASE )
5550 filtered_mods = {
5651 name : data
5752 for name , data in datamodel .kernel_modules .items ()
@@ -60,6 +55,5 @@ def build_from_model(cls, datamodel: KernelModuleDataModel) -> "KernelModuleAnal
6055
6156 return cls (
6257 kernel_modules = filtered_mods ,
63- regex_filter = cls .DEFAULT_REGEX_FILTER ,
64- regex_match = cls .DEFAULT_REGEX_MATCH ,
58+ regex_filter = [],
6559 )
0 commit comments