Skip to content

Commit c95889a

Browse files
author
Patrick
committed
small bug fix
1 parent 2943a4e commit c95889a

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

contentctl/input/ssa_detection_builder.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,14 @@
1313
from contentctl.enrichments.splunk_app_enrichment import SplunkAppEnrichment
1414
from contentctl.objects.ssa_detection import SSADetection
1515
from contentctl.objects.constants import *
16-
from contentctl.input.director import DirectorOutputDto
1716
from contentctl.enrichments.attack_enrichment import AttackEnrichment
1817

1918
class SSADetectionBuilder():
2019
security_content_obj : SSADetection
2120

2221

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)
2724
self.security_content_obj = SSADetection.parse_obj(yml_dict)
2825
self.security_content_obj.source = os.path.split(os.path.dirname(self.security_content_obj.file_path))[-1]
2926

0 commit comments

Comments
 (0)