Skip to content

Commit 223b643

Browse files
authored
[ARM] Fix issue #31188: az lock delete: Fix the case sensitivity of --namespace parameter validation (#31274)
1 parent 42850b4 commit 223b643

3 files changed

Lines changed: 585 additions & 1 deletion

File tree

src/azure-cli/azure/cli/command_modules/resource/custom.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4007,7 +4007,7 @@ def _validate_lock_params_match_lock(
40074007
name, _resource_group))
40084008
if _resource_namespace is None or _resource_namespace == 'Microsoft.Authorization':
40094009
return
4010-
if resource_provider_namespace != _resource_namespace:
4010+
if resource_provider_namespace and resource_provider_namespace.lower() != _resource_namespace.lower():
40114011
raise CLIError(
40124012
'Unexpected --namespace for lock {}, expected {}'.format(name, _resource_namespace))
40134013
if resource.get('child_type_2', None) is None:

0 commit comments

Comments
 (0)