Commit 79f89514 authored by aknecht2's avatar aknecht2
Browse files

Added boolean argument handling.

parent 76350ea7
......@@ -188,7 +188,7 @@ class WorkflowJob(object):
arg_list.append("%s %s" % (arg, self.params["arguments"][arg] if arg in self.params else arg_info["default"]))
else:
if arg_info["has_value"]:
if arg_info["default"][:1] == "$":
if not isinstance(arg_info["default"], bool) and arg_info["default"][:1] == "$":
key, index = arg_info["default"].split(".")
arg_list.append(arg)
# We only add the file object if the passed argument is
......@@ -197,7 +197,7 @@ class WorkflowJob(object):
else:
arg_list.append("%s %s" % (arg, arg_info["default"]))
else:
if arg[:1] == "$":
if not isinstance(arg, bool) and arg[:1] == "$":
key, index = arg.split(".")
# We only add the file object if the passed argument is
# has type == file
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment