File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -174,7 +174,6 @@ def audit_task(self, task):
174
174
import subprocess as sp
175
175
176
176
label = task .name
177
-
178
177
179
178
command = task .cmdline if hasattr (task .inputs , "executable" ) else None
180
179
attr_list = attr_fields (task .inputs )
@@ -186,18 +185,15 @@ def audit_task(self, task):
186
185
file_hash = hash_file (input_path )
187
186
entity_id = f"uid:{ gen_uuid ()} "
188
187
entity_message = {
189
- "@id" : entity_id ,
188
+ "@id" : entity_id ,
190
189
"Label" : entity_label ,
191
190
"AtLocation" : input_path ,
192
- "GeneratedBy" : None ,
191
+ "GeneratedBy" : None ,
193
192
"@type" : "input" ,
194
193
"digest" : file_hash ,
195
194
}
196
195
self .audit_message (entity_message , AuditFlag .PROV )
197
196
198
-
199
-
200
-
201
197
if command is not None :
202
198
cmd_name = command .split ()[0 ]
203
199
software = f"{ cmd_name } --version"
@@ -225,6 +221,4 @@ def audit_task(self, task):
225
221
"AssociatedWith" : version_cmd ,
226
222
}
227
223
228
-
229
-
230
224
self .audit_message (start_message , AuditFlag .PROV )
You can’t perform that action at this time.
0 commit comments