Skip to content

Commit 7c4c062

Browse files
authored
Batch Deployment fix (#34925)
1 parent 67cdd8b commit 7c4c062

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sdk/ml/azure-ai-ml/azure/ai/ml/entities/_deployment/batch_deployment.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,10 @@ def _from_rest_object( # pylint: disable=arguments-renamed
254254
) -> BatchDeploymentData:
255255
modelId = deployment.properties.model.asset_id if deployment.properties.model else None
256256

257-
if hasattr(deployment.properties, "deployment_configuration"):
257+
if (
258+
hasattr(deployment.properties, "deployment_configuration")
259+
and deployment.properties.deployment_configuration is not None
260+
):
258261
settings = deployment.properties.deployment_configuration.settings
259262
deployment_comp_settings = {
260263
"deployment_configuration_type": deployment.properties.deployment_configuration.deployment_configuration_type, # pylint: disable=line-too-long

0 commit comments

Comments
 (0)