mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
location name (#40055)
This commit is contained in:
parent
57f6abdb84
commit
c84e3e70ab
2 changed files with 7 additions and 2 deletions
|
@ -96,7 +96,7 @@ try:
|
|||
except ImportError:
|
||||
pass
|
||||
|
||||
from ansible.module_utils.azure_rm_common import AzureRMModuleBase
|
||||
from ansible.module_utils.azure_rm_common import AzureRMModuleBase, normalize_location_name
|
||||
|
||||
|
||||
def resource_group_to_dict(rg):
|
||||
|
@ -162,7 +162,7 @@ class AzureRMResourceGroup(AzureRMModuleBase):
|
|||
if update_tags:
|
||||
changed = True
|
||||
|
||||
if self.location and self.location != results['location']:
|
||||
if self.location and normalize_location_name(self.location) != results['location']:
|
||||
self.fail("Resource group '{0}' already exists in location '{1}' and cannot be "
|
||||
"moved.".format(self.name, results['location']))
|
||||
except CloudError:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue