Skip to content
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