File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -106,12 +106,12 @@ class Contract:
106
106
]
107
107
+ VariableHelper .uri_variables ()
108
108
)
109
- attack_patterns_external_ids : List [str ] = field (default_factory = list )
109
+ contract_attack_patterns_external_ids : List [str ] = field (default_factory = list )
110
110
is_atomic_testing : bool = True
111
111
platforms : List [str ] = field (default_factory = list )
112
112
113
113
def add_attack_pattern (self , var : str ):
114
- self .attack_patterns_external_ids .append (var )
114
+ self .contract_attack_patterns_external_ids .append (var )
115
115
116
116
def add_variable (self , var : ContractVariable ):
117
117
self .variables .append (var )
@@ -140,7 +140,7 @@ def prepare_contracts(contracts):
140
140
lambda c : {
141
141
"contract_id" : c .contract_id ,
142
142
"contract_labels" : c .label ,
143
- "contract_attack_patterns_external_ids" : c .attack_patterns_external_ids ,
143
+ "contract_attack_patterns_external_ids" : c .contract_attack_patterns_external_ids ,
144
144
"contract_content" : json .dumps (c , cls = utils .EnhancedJSONEncoder ),
145
145
"contract_platforms" : c .platforms ,
146
146
},
You can’t perform that action at this time.
0 commit comments