sc = []
def only_real(obj):
- loc = obj.get("location", "")
- if loc.startswith("file:") or loc.startswith("keep:"):
+ if obj.get("location", "").startswith("file:"):
sc.append(obj)
visit_class(sc_result, ("File", "Directory"), only_real)
visit_class(workflowobj, ("CommandLineTool", "Workflow"), discover_default_secondary_files)
- for d in discovered:
- sc.extend(discovered[d])
+ for d in list(discovered.keys()):
+ # Only interested in discovered secondaryFiles which are local
+ # files that need to be uploaded.
+ if d.startswith("file:"):
+ sc.extend(discovered[d])
+ else:
+ del discovered[d]
mapper = ArvPathMapper(arvrunner, sc, "",
"keep:%s",