mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Fix missing key error when updating existing virtual network.
This commit is contained in:
@@ -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']
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user