summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Beahan <ebeahan@gmail.com>2016-12-15 15:31:34 -0600
committerPeter Sprygada <privateip@users.noreply.github.com>2016-12-15 16:31:34 -0500
commitdce8f3899ec1e4374177a724390981ef78498a2b (patch)
treed37f6ed2069e8b22682a2c67c6b60d1c728aef18
parente0e1d3b5616aed8df2573b8368e9461637ccb20d (diff)
downloadansible-dce8f3899ec1e4374177a724390981ef78498a2b.tar.gz
Modify an initial value causing exception when vlan_range param is present (#19019)
-rw-r--r--lib/ansible/modules/network/nxos/nxos_vlan.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/modules/network/nxos/nxos_vlan.py b/lib/ansible/modules/network/nxos/nxos_vlan.py
index 886598cd5c..2e13c9a336 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':