Skip to content

Commit 74a14be

Browse files
authored
fixing tags (#3135)
1 parent 95d5a02 commit 74a14be

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/zenml/integrations/aws/orchestrators/sagemaker_orchestrator.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,13 @@ def prepare_or_run_pipeline(
463463
)
464464

465465
pipeline.create(
466-
role_arn=self.config.execution_role, tags=settings.pipeline_tags
466+
role_arn=self.config.execution_role,
467+
tags=[
468+
{"Key": key, "Value": value}
469+
for key, value in settings.pipeline_tags.items()
470+
]
471+
if settings.pipeline_tags
472+
else None,
467473
)
468474
execution = pipeline.start()
469475
logger.warning(

0 commit comments

Comments
 (0)