Skip to content

Commit 0e84f33

Browse files
committed
Fix: Object of type ModelLifeCycle is not JSON serializable
For commit: 844b558
1 parent ba2a6b4 commit 0e84f33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sagemaker-core/src/sagemaker/core/model_registry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def get_model_package_args(
9898
if source_uri is not None:
9999
model_package_args["source_uri"] = source_uri
100100
if model_life_cycle is not None:
101-
model_package_args["model_life_cycle"] = model_life_cycle
101+
model_package_args["model_life_cycle"] = model_life_cycle._to_request_dict()
102102
if model_card is not None:
103103
original_req = model_card._create_request_args()
104104
if original_req.get("ModelCardName") is not None:

0 commit comments

Comments
 (0)