Skip to content

Commit

Permalink
Fix the case sensitive comparision issue for resource group name
Browse files Browse the repository at this point in the history
  • Loading branch information
zhoxing-ms committed Dec 25, 2023
1 parent 5c56f40 commit 4d3ef69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/azure-cli/azure/cli/command_modules/resource/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -3810,7 +3810,7 @@ def _validate_lock_params_match_lock(
_resource_namespace = resource.get('namespace', None)
if _resource_group is None:
return
if resource_group != _resource_group:
if resource_group and resource_group.lower() != _resource_group.lower():
raise CLIError(
'Unexpected --resource-group for lock {}, expected {}'.format(
name, _resource_group))
Expand Down

0 comments on commit 4d3ef69

Please sign in to comment.