mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix missing key error when updating existing virtual network.
This commit is contained in:
parent
375884464e
commit
0c5eac4243
1 changed files with 1 additions and 1 deletions
|
@ -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']
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue