Skip to content

Commit 0d41232

Browse files
authored
Fix containerapp update using yml file
I think the upgrade to the new API version (Azure#31276) lead to `runningStatus` appearing as a field at the top level when the YAML file passed to `az containerapp update` is run through the deserialiser. It then caused an error before the command was run: ``` (InvalidRequestContent) The request content was invalid and could not be deserialized: 'Could not find member 'runningStatus' on object of type 'ResourceDefinition'. Path 'runningStatus', line 1, position 224.'. ``` The fix is to add it to the existing list of readonly attributes to remove.
1 parent 106221b commit 0d41232

File tree

1 file changed

+2
-1
lines changed
  • src/azure-cli/azure/cli/command_modules/containerapp

1 file changed

+2
-1
lines changed

src/azure-cli/azure/cli/command_modules/containerapp/_utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,8 @@ def _remove_readonly_attributes(containerapp_def):
949949
"latestRevisionFqdn",
950950
"customDomainVerificationId",
951951
"outboundIpAddresses",
952-
"fqdn"
952+
"fqdn",
953+
"runningStatus"
953954
]
954955

955956
for unneeded_property in unneeded_properties:

0 commit comments

Comments
 (0)