From d4e8cbebfb91537ee9852087567d390613e7b9eb Mon Sep 17 00:00:00 2001 From: Brandon Neff Date: Mon, 22 Aug 2022 19:02:36 -0700 Subject: [PATCH] {EventGrid} `az eventgrid topic/domain event-subscription update`: Fix validation of deadletter identity parameters (#23564) Co-authored-by: Brandon Neff --- src/azure-cli/azure/cli/command_modules/eventgrid/custom.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/azure-cli/azure/cli/command_modules/eventgrid/custom.py b/src/azure-cli/azure/cli/command_modules/eventgrid/custom.py index eb8549ac663..d528310c747 100644 --- a/src/azure-cli/azure/cli/command_modules/eventgrid/custom.py +++ b/src/azure-cli/azure/cli/command_modules/eventgrid/custom.py @@ -2130,6 +2130,7 @@ def update_event_subscription( storage_queue_msg_ttl=None, enable_advanced_filtering_on_arrays=None, delivery_attribute_mapping=None): + return _update_event_subscription_internal( instance=instance, endpoint=endpoint, @@ -2177,7 +2178,7 @@ def _update_event_subscription_internal( # pylint: disable=too-many-locals,too- _validate_deadletter_identity_args( deadletter_identity, - deadletter_endpoint) + deadletter_identity_endpoint) if (endpoint_type is not None and endpoint_type.lower() != WEBHOOK_DESTINATION.lower() and