From 09da334e1b742265cad554c5b21cfaa6cfbd33da Mon Sep 17 00:00:00 2001 From: Alejandro Barrera Date: Tue, 26 Apr 2016 11:48:37 -0400 Subject: [PATCH] Avoid input binding of optional arguments when they are not specified. --- cwltool/builder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cwltool/builder.py b/cwltool/builder.py index 6e4d95e6c..8885e2e94 100644 --- a/cwltool/builder.py +++ b/cwltool/builder.py @@ -66,7 +66,7 @@ def bind_input(self, schema, datum, lead_pos=[], tail_pos=[]): if schema["type"] == "record": for f in schema["fields"]: - if f["name"] in datum: + if f["name"] in datum and datum[f["name"]]: bindings.extend(self.bind_input(f, datum[f["name"]], lead_pos=lead_pos, tail_pos=f["name"])) else: datum[f["name"]] = f.get("default")