@@ -109,15 +109,27 @@ def _v1_0_to_v1_1(document):
109109 if isinstance (steps , MutableSequence ):
110110 for entry in steps :
111111 upgrade_v1_0_hints_and_reqs (entry )
112+ if 'run' in entry and isinstance (entry ['run' ], MutableMapping ):
113+ process = entry ['run' ]
114+ _v1_0_to_v1_1 (process )
115+ if 'cwlVersion' in process :
116+ del process ['cwlVersion' ]
112117 elif isinstance (steps , MutableMapping ):
113118 for step_name in steps :
114- upgrade_v1_0_hints_and_reqs (steps [step_name ])
119+ entry = steps [step_name ]
120+ upgrade_v1_0_hints_and_reqs (entry )
121+ if 'run' in entry and isinstance (entry ['run' ], MutableMapping ):
122+ process = entry ['run' ]
123+ _v1_0_to_v1_1 (process )
124+ if 'cwlVersion' in process :
125+ del process ['cwlVersion' ]
115126 elif document ['class' ] == 'CommandLineTool' :
116127 upgrade_v1_0_hints_and_reqs (document )
117128 move_up_loadcontents (document )
118129 network_access = has_hint_or_req (document , "NetworkAccess" )
119130 listing = has_hint_or_req (document , "LoadListingRequirement" )
120131 hints = document .get ('hints' , {})
132+ # TODO: add comments to explain the extra hints
121133 if isinstance (hints , MutableSequence ):
122134 if not network_access :
123135 hints .append ({"class" : "NetworkAcess" , "networkAccess" : True })
0 commit comments