mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
normalize the resource location (#40802)
This commit is contained in:
@@ -614,7 +614,7 @@ except ImportError:
|
||||
pass
|
||||
|
||||
from ansible.module_utils.basic import to_native, to_bytes
|
||||
from ansible.module_utils.azure_rm_common import AzureRMModuleBase, azure_id_to_dict
|
||||
from ansible.module_utils.azure_rm_common import AzureRMModuleBase, azure_id_to_dict, normalize_location_name
|
||||
|
||||
|
||||
AZURE_OBJECT_CLASS = 'VirtualMachine'
|
||||
@@ -742,6 +742,8 @@ class AzureRMVirtualMachine(AzureRMModuleBase):
|
||||
# Set default location
|
||||
self.location = resource_group.location
|
||||
|
||||
self.location = normalize_location_name(self.location)
|
||||
|
||||
if self.state == 'present':
|
||||
# Verify parameters and resolve any defaults
|
||||
|
||||
|
||||
Reference in New Issue
Block a user