Skip to content

Commit 46cee2e

Browse files
authored
Merge pull request #55 from blumenstiel/main
Fix kfp yaml name
2 parents dba1fe8 + e43f8f8 commit 46cee2e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/c3/create_operator.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -60,17 +60,17 @@ def create_dockerfile(dockerfile_template, requirements, target_code, target_dir
6060
def create_kfp_component(name, description, repository, version, command, target_code, target_dir, file_path, inputs, outputs):
6161

6262
inputs_list = str()
63-
for name, options in inputs.items():
64-
inputs_list += f'- {{name: {name}, type: {options["type"]}, description: "{options["description"]}"'
63+
for input, options in inputs.items():
64+
inputs_list += f'- {{name: {input}, type: {options["type"]}, description: "{options["description"]}"'
6565
if options['default'] is not None:
6666
if not options["default"].startswith('"'):
6767
options["default"] = f'"{options["default"]}"'
6868
inputs_list += f', default: {options["default"]}'
6969
inputs_list += '}\n'
7070

7171
outputs_list = str()
72-
for name, options in outputs.items():
73-
outputs_list += f'- {{name: {name}, type: String, description: "{options["description"]}"}}\n'
72+
for output, options in outputs.items():
73+
outputs_list += f'- {{name: {output}, type: String, description: "{options["description"]}"}}\n'
7474

7575
parameter_list = str()
7676
for index, key in enumerate(list(inputs.keys()) + list(outputs.keys())):

0 commit comments

Comments
 (0)