mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-09 01:44:03 -07:00
resources models
This commit is contained in:
parent
11c5d7b670
commit
8b482ecd81
2 changed files with 7 additions and 14 deletions
|
@ -96,7 +96,6 @@ state:
|
|||
|
||||
try:
|
||||
from msrestazure.azure_exceptions import CloudError
|
||||
from azure.mgmt.resource.resources.models import ResourceGroup
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
|
@ -193,13 +192,13 @@ class AzureRMResourceGroup(AzureRMModuleBase):
|
|||
if self.name_exists():
|
||||
self.fail("Error: a resource group with the name {0} already exists in your subscription."
|
||||
.format(self.name))
|
||||
params = ResourceGroup(
|
||||
params = self.rm_models.ResourceGroup(
|
||||
location=self.location,
|
||||
tags=self.tags
|
||||
)
|
||||
else:
|
||||
# Update resource group
|
||||
params = ResourceGroup(
|
||||
params = self.rm_models.ResourceGroup(
|
||||
location=results['location'],
|
||||
tags=results['tags']
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue