10111: If there is no cwl.input.json object as part of a CR mount list, search for...
[arvados.git] / apps / workbench / app / helpers / provenance_helper.rb
index 36513b34108d8918b04f469383363934f1790521..fa58205a9fb8a0dd2035572d0f2f4e4275935451 100644 (file)
@@ -108,7 +108,8 @@ module ProvenanceHelper
       uuid = cr[:uuid]
       gr = ""
 
-      input_obj = cr[:mounts].andand[:"/var/lib/cwl/cwl.input.json"].andand[:content]
+      # Search for input mounts
+      input_obj = cr[:mounts].andand[:"/var/lib/cwl/cwl.input.json"].andand[:content] || cr[:mounts] || {}
       if input_obj
         ProvenanceHelper::find_collections input_obj, 'mounts' do |col_hash, col_uuid, key|
           if col_uuid