Skip to content

Commit 67fea79

Browse files
authored
Make SagemakerOrchestratorSettings.processor_tags optional (#3773)
* Make SagemakerOrchestratorSettings.processor_tags optional * Exclude unset config attributes
1 parent 10f0fcb commit 67fea79

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/zenml/integrations/aws/flavors/sagemaker_orchestrator_flavor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ class SagemakerOrchestratorSettings(BaseSettings):
130130
)
131131

132132
processor_role: Optional[str] = None
133-
processor_tags: Dict[str, str] = {}
133+
processor_tags: Optional[Dict[str, str]] = None
134134
_deprecation_validator = deprecation_utils.deprecate_pydantic_attributes(
135135
("processor_role", "execution_role"), ("processor_tags", "tags")
136136
)

src/zenml/stack/stack_component.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ def get_settings(
527527
)
528528

529529
# Use the current config as a base
530-
settings_dict = self.config.model_dump()
530+
settings_dict = self.config.model_dump(exclude_unset=True)
531531

532532
if key in all_settings:
533533
settings_dict.update(dict(all_settings[key]))

0 commit comments

Comments
 (0)