KeyError
during container update on az containerapp update
#6712
Labels
Auto-Assign
Auto assign by bot
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
ContainerApp
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
CXP Attention
This issue is handled by CXP team.
issue-addressed
This issue is addressed and ready to close.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Describe the bug
When I run
az containerapp update
the command fails with a KeyError, as you can see below. This wasn't happening with previous versions ofcontainerapp
, and after some Investigation this has been introduced in a recent change in this repo. I've put the change in the "Additional context" section.Related command
az containerapp update
Errors
Issue script & Debug output
Expected behavior
It should update the Container App, as it was with the previous versions of
containerapp
. But instead, it's erroring out with a KeyError due to thesecret_values
(List[Dict[str, str]
) having dictionaries withname
and notvalue
, like this:[{"name": "my-secret"}]
.Environment Summary
azure-cli 2.51.0
core 2.51.0
telemetry 1.1.0
Extensions:
containerapp 0.3.38
Dependencies:
msal 1.24.0b1
azure-mgmt-resource 23.1.0b2
Python location '/Users//.asdf/installs/azure-cli/2.51.0/bin/venv/bin/python3'
Extensions directory '/Users//.azure/cliextensions'
Python (Darwin) 3.10.3 (main, Apr 28 2022, 19:15:59) [Clang 13.1.6 (clang-1316.0.21.2.3)]
Legal docs and information: aka.ms/AzureCliLegal
Your CLI is up-to-date.
Additional context
I've added a comment in the file change introduced 3 days ago, that checks for the value of
show_values
, which cannot be set with theaz containerapp update
command (its a flag forsecrets
). You can see the comment here: ac8bc6d#r126090624The text was updated successfully, but these errors were encountered: