diff --git a/lib/ansible/module_utils/network/eos/config/vlans/vlans.py b/lib/ansible/module_utils/network/eos/config/vlans/vlans.py index f1402d2245..99cb37cd07 100644 --- a/lib/ansible/module_utils/network/eos/config/vlans/vlans.py +++ b/lib/ansible/module_utils/network/eos/config/vlans/vlans.py @@ -209,7 +209,7 @@ def generate_commands(vlan_id, to_set, to_remove): return ["no vlan {0}".format(vlan_id)] for key, value in to_set.items(): - if value is None: + if key == "vlan_id" or value is None: continue commands.append("{0} {1}".format(key, value))