Loading tbc/template_to_component.py +1 −1 Original line number Diff line number Diff line Loading @@ -140,7 +140,7 @@ def _migrate_tpl(tpl_desc, project_dir: Path, var_prefix: str): for var in feat.get("variables", []): gl_inputs.append(_migrate_var(TbcVar.parse_obj(var), var_prefix, tpl)) tpl_specs = {"specs": {"inputs": list(map(lambda input: input.to_json(), filter(lambda input: input != None, gl_inputs)))}} tpl_specs = {"spec": {"inputs": list(map(lambda input: input.to_json(), filter(lambda input: input != None, gl_inputs)))}} # rewrite template with inputs section # print(">> Rewrite template") Loading Loading
tbc/template_to_component.py +1 −1 Original line number Diff line number Diff line Loading @@ -140,7 +140,7 @@ def _migrate_tpl(tpl_desc, project_dir: Path, var_prefix: str): for var in feat.get("variables", []): gl_inputs.append(_migrate_var(TbcVar.parse_obj(var), var_prefix, tpl)) tpl_specs = {"specs": {"inputs": list(map(lambda input: input.to_json(), filter(lambda input: input != None, gl_inputs)))}} tpl_specs = {"spec": {"inputs": list(map(lambda input: input.to_json(), filter(lambda input: input != None, gl_inputs)))}} # rewrite template with inputs section # print(">> Rewrite template") Loading