File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
contentctl/actions/detection_testing Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -69,10 +69,10 @@ def getChanges(self, target_branch:str)->List[Detection]:
69
69
#Make a filename to content map
70
70
filepath_to_content_map = { obj .file_path :obj for (_ ,obj ) in self .director .name_to_content_map .items ()}
71
71
72
- updated_detections :List [Detection ] = set ()
73
- updated_macros :List [Macro ] = set ()
74
- updated_lookups :List [Lookup ] = set ()
75
- updated_datasources :List [DataSource ] = set ()
72
+ updated_detections : set [Detection ] = set ()
73
+ updated_macros : set [Macro ] = set ()
74
+ updated_lookups : set [Lookup ] = set ()
75
+ updated_datasources : set [DataSource ] = set ()
76
76
77
77
78
78
for diff in all_diffs :
@@ -98,7 +98,7 @@ def getChanges(self, target_branch:str)->List[Detection]:
98
98
elif decoded_path .is_relative_to (self .config .path / "data_sources" ) and decoded_path .suffix == ".yml" :
99
99
datasourceObject = filepath_to_content_map .get (decoded_path , None )
100
100
if isinstance (datasourceObject , DataSource ):
101
- updated_datasources .append (datasourceObject )
101
+ updated_datasources .add (datasourceObject )
102
102
else :
103
103
raise Exception (f"Error getting data source object for file { str (decoded_path )} " )
104
104
You can’t perform that action at this time.
0 commit comments