From dce8f3899ec1e4374177a724390981ef78498a2b Mon Sep 17 00:00:00 2001 From: Eric Beahan Date: Thu, 15 Dec 2016 15:31:34 -0600 Subject: [PATCH] Modify an initial value causing exception when vlan_range param is present (#19019) --- lib/ansible/modules/network/nxos/nxos_vlan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/network/nxos/nxos_vlan.py b/lib/ansible/modules/network/nxos/nxos_vlan.py index 886598cd5cd..2e13c9a336a 100644 --- a/lib/ansible/modules/network/nxos/nxos_vlan.py +++ b/lib/ansible/modules/network/nxos/nxos_vlan.py @@ -595,7 +595,7 @@ def main(): vlan_id or vlan_range)) existing_vlans_list = numerical_sort(get_list_of_vlans(module)) commands = [] - existing = None + existing = {} if vlan_range: if state == 'present':