Skip to content

Commit 3b27206

Browse files
committed
addressing comments
1 parent 61e5cf2 commit 3b27206

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/containerapp/azext_containerapp/_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -842,7 +842,7 @@ def get_min_replicas_from_revision(cmd, resource_group_name, container_app_name,
842842
container_app_name=container_app_name,
843843
name=revision_name
844844
)
845-
min_replicas = safe_get(revision_def, "properties", {}).get("template", {}).get("scale", {}).get("minReplicas")
845+
min_replicas = safe_get(revision_def, "properties", "template", "scale", "minReplicas", default=None)
846846
return min_replicas
847847

848848

0 commit comments

Comments
 (0)