resources models

This commit is contained in:
Zhijun Zhao 2017-12-28 16:32:17 +08:00 committed by Matt Davis
commit 8b482ecd81
2 changed files with 7 additions and 14 deletions

View file

@ -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']
)