Skip to content

Commit 61e5cf2

Browse files
committed
addressing comments
1 parent aa75ac8 commit 61e5cf2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/containerapp/HISTORY.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ Release History
44
===============
55
upcoming
66
++++++
7+
* 'az containerapp function invocations': modifications to app-insights query
8+
* 'az containerapp function keys': updating min-replica check
79

810
1.3.0b1
911
++++++

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 = revision_def.get("properties", {}).get("template", {}).get("scale", {}).get("minReplicas")
845+
min_replicas = safe_get(revision_def, "properties", {}).get("template", {}).get("scale", {}).get("minReplicas")
846846
return min_replicas
847847

848848

0 commit comments

Comments
 (0)