File tree Expand file tree Collapse file tree 1 file changed +4
-14
lines changed Expand file tree Collapse file tree 1 file changed +4
-14
lines changed Original file line number Diff line number Diff line change @@ -189,16 +189,6 @@ def audit_task(self, task):
189
189
input_name = attrs .name
190
190
input_path = None
191
191
file_hash = None
192
- # at_location = os.path.abspath(input_name)
193
-
194
- # if hasattr(task.inputs, "in_file"):
195
- # input_file = task.inputs.in_file
196
- # file_hash = hash_file(input_file)
197
- # at_location = os.path.abspath(input_file)
198
- # else:
199
- # file_hash = None
200
- # at_location = None
201
- # input_file = None
202
192
203
193
if command is not None :
204
194
cmd_name = command .split ()[0 ]
@@ -228,12 +218,12 @@ def audit_task(self, task):
228
218
}
229
219
entity_id = f"uid:{ gen_uuid ()} "
230
220
entity_message = {
231
- "@id" : entity_id , # add ID here
221
+ "@id" : entity_id ,
232
222
"Label" : print (entity_label ),
233
- "AtLocation" : input_path , # at_location,
234
- "GeneratedBy" : "test" , # if not part of workflow, this will be none
223
+ "AtLocation" : input_path ,
224
+ "GeneratedBy" : "test" ,
235
225
"@type" : "input" ,
236
- "digest" : file_hash , # hash value under helpers.py
226
+ "digest" : file_hash
237
227
}
238
228
239
229
self .audit_message (start_message , AuditFlag .PROV )
You can’t perform that action at this time.
0 commit comments