Skip to content

Commit

Permalink
Fixed bug. (Azure#86)
Browse files Browse the repository at this point in the history
Co-authored-by: Haroon Feisal <haroonfeisal@microsoft.com>
  • Loading branch information
runefa and Haroon Feisal authored May 4, 2022
1 parent 711bbd4 commit 65cb30c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/containerapp/azext_containerapp/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -820,8 +820,9 @@ def _update_traffic_weights(containerapp_def, list_weights):

if not is_existing:
containerapp_def["properties"]["configuration"]["ingress"]["traffic"].append({
"revisionName": key_val[0],
"weight": int(key_val[1])
"revisionName": key_val[0] if key_val[0].lower() != "latest" else None,
"weight": int(key_val[1]),
"latestRevision": key_val[0].lower() == "latest"
})


Expand Down

0 comments on commit 65cb30c

Please sign in to comment.