Fix missing key error when updating existing virtual network.

This commit is contained in:
chouseknecht 2016-05-26 11:48:58 -04:00 committed by Matt Clay
parent 375884464e
commit 0c5eac4243

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