Skip to content

Commit bdaf385

Browse files
committed
Remove none values from config template
1 parent 2eb66f4 commit bdaf385

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/zenml/zen_stores/template_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ def generate_config_template(
9999
name: step.config.model_dump(
100100
include=set(StepConfigurationUpdate.model_fields),
101101
exclude={"name", "outputs"},
102+
exclude_none=True,
102103
)
103104
for name, step in deployment_model.step_configurations.items()
104105
}
@@ -109,6 +110,7 @@ def generate_config_template(
109110
pipeline_config = deployment_model.pipeline_configuration.model_dump(
110111
include=set(PipelineRunConfiguration.model_fields),
111112
exclude={"schedule", "build", "parameters"},
113+
exclude_none=True,
112114
)
113115

114116
pipeline_config["settings"].pop("docker", None)

0 commit comments

Comments
 (0)