fixes #4441 passing subnet_name parameter (#18920)

pull/4420/head
Patrick Marques 2017-04-12 18:58:57 +01:00 committed by Matt Davis
parent ece2aa2d5f
commit 731fc288fa
1 changed files with 1 additions and 1 deletions

View File

@ -1243,7 +1243,7 @@ class AzureRMVirtualMachine(AzureRMModuleBase):
if self.subnet_name:
try:
subnet = self.network_client.subnets.get(self.resource_group, virtual_network_name)
subnet = self.network_client.subnets.get(self.resource_group, virtual_network_name, self.subnet_name)
subnet_id = subnet.id
except Exception as exc:
self.fail("Error: fetching subnet {0} - {1}".format(self.subnet_name, str(exc)))