Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(vdp): allow empty input for recipe parameter #229

Merged
merged 1 commit into from
Oct 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions instill/clients/pipeline.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# pylint: disable=no-member,wrong-import-position,too-many-lines,no-name-in-module
from typing import Callable, List
from typing import Callable, List, Optional

from google.protobuf import field_mask_pb2
from google.protobuf.struct_pb2 import Struct
Expand Down Expand Up @@ -237,7 +237,7 @@ def create_pipeline(
namespace_id: str,
pipeline_id: str,
description: str,
recipe: dict,
recipe: Optional[dict] = None,
raw_recipe: str = "",
async_enabled: bool = False,
) -> pipeline_interface.CreateNamespacePipelineResponse:
Expand All @@ -246,6 +246,8 @@ def create_pipeline(
description=description,
raw_recipe=raw_recipe,
)
if recipe is None:
recipe = {}
pipeline.recipe.update(recipe)

if async_enabled:
Expand Down
Loading