Maintenance - Mise à jour mensuelle Lundi 7 Décembre 2021 entre 7h00 et 9h00

Commit 0203c77b authored by Floreal Cabanettes's avatar Floreal Cabanettes
Browse files

Fix print programs of a workflow

parent 2272c9cd
......@@ -641,7 +641,7 @@ class Workflow(threading.Thread):
def get_workflow_programs(self):
programs = OrderedDict()
for current_component in self.components:
version = current_component.get_version()
version = current_component.version
if version:
program = {
"name": current_component.get_prg_name(),
......@@ -650,8 +650,9 @@ class Workflow(threading.Thread):
}
for param in current_component.params_order:
param_obj = getattr(current_component, param)
if param_obj.cmd_format != "":
program["parameters"].append(param_obj.cmd_format.format(param_obj))
if param_obj.cmd_format != "" and not param_obj.is_None and param_obj:
program["parameters"].append(param_obj.cmd_format + ((" " + str(param_obj))
if param_obj.type != bool else ""))
programs[current_component.get_nameid()] = program
return programs
......
Markdown is supported
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