diff --git a/sagemaker-core/src/sagemaker/core/tools/templates.py b/sagemaker-core/src/sagemaker/core/tools/templates.py index 674bd9a956..3a1cc326d1 100644 --- a/sagemaker-core/src/sagemaker/core/tools/templates.py +++ b/sagemaker-core/src/sagemaker/core/tools/templates.py @@ -644,7 +644,7 @@ def populate_chained_attributes(resource_name: str, operation_input_args: Union[ if value == Unassigned() : unassigned_args.append(arg) - elif value == None or not value: + elif value is None or not value: continue elif ( arg_snake.endswith("name")