Merge pull request #3753 from chouseknecht/fix_azure_virtualnet

Fix missing key error when updating existing virtual network.
This commit is contained in:
Chris Houseknecht 2016-05-26 12:19:39 -04:00
commit 78c93d3ce5

View file

@ -333,7 +333,7 @@ class AzureRMVirtualNetwork(AzureRMModuleBase):
),
tags=results['tags']
)
if results['dns_servers']:
if results.get('dns_servers'):
vnet.dhcp_options = DhcpOptions(
dns_servers=results['dns_servers']
)