Skip to content

Commit

Permalink
fix: code as required
Browse files Browse the repository at this point in the history
  • Loading branch information
nazarfil committed Oct 1, 2024
1 parent 5e5ab17 commit fd8543d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion openhexa/cli/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ def upload_pipeline(
"description": description,
"externalLink": link,
"zipfile": base64_content,
"parameters": [asdict(p) for p in pipeline.parameters],
"parameters": [p.to_dict() for p in pipeline.parameters],
"timeout": pipeline.timeout,
}
},
Expand Down
2 changes: 1 addition & 1 deletion openhexa/sdk/pipelines/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def get_pipeline(pipeline_path: Path) -> Pipeline:
inst = TYPES_BY_PYTHON_TYPE[args["type"]]()
args["type"] = inst.expected_type
parameter = Parameter(
code=args.get("code"),
code=args["code"],
name=args.get("name"),
type=args.get("type"),
choices=args.get("choices"),
Expand Down

0 comments on commit fd8543d

Please sign in to comment.