File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 13
13
from contentctl .enrichments .splunk_app_enrichment import SplunkAppEnrichment
14
14
from contentctl .objects .ssa_detection import SSADetection
15
15
from contentctl .objects .constants import *
16
- from contentctl .input .director import DirectorOutputDto
17
16
from contentctl .enrichments .attack_enrichment import AttackEnrichment
18
17
19
18
class SSADetectionBuilder ():
20
19
security_content_obj : SSADetection
21
20
22
21
23
- def setObject (self , path : str ,
24
- output_dto :DirectorOutputDto ) -> None :
25
- yml_dict = YmlReader .load_file (path )
26
- #self.security_content_obj = SSADetection.model_validate(yml_dict, context={"output_dto":output_dto})
22
+ def setObject (self , path : str ) -> None :
23
+ yml_dict = YmlReader .load_file (path )
27
24
self .security_content_obj = SSADetection .parse_obj (yml_dict )
28
25
self .security_content_obj .source = os .path .split (os .path .dirname (self .security_content_obj .file_path ))[- 1 ]
29
26
You can’t perform that action at this time.
0 commit comments