From c61dec032cf39943e163578ca52a0b62e626e7ed Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Sat, 24 Aug 2019 12:57:17 -0400 Subject: [PATCH] Remove unsed variable is l2_interfaces.py (#61246) Signed-off-by: Paul Belanger --- .../network/eos/config/l2_interfaces/l2_interfaces.py | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/ansible/module_utils/network/eos/config/l2_interfaces/l2_interfaces.py b/lib/ansible/module_utils/network/eos/config/l2_interfaces/l2_interfaces.py index ad83af0506e..519453d6106 100644 --- a/lib/ansible/module_utils/network/eos/config/l2_interfaces/l2_interfaces.py +++ b/lib/ansible/module_utils/network/eos/config/l2_interfaces/l2_interfaces.py @@ -207,7 +207,6 @@ def set_interface(want, have): commands.append("switchport trunk native vlan {0}".format(native_vlan)) allowed_vlans = want['trunk'].get("trunk_allowed_vlans") - has_allowed = has_trunk.get("trunk_allowed_vlans") if allowed_vlans: allowed_vlans = ','.join(allowed_vlans) commands.append("switchport trunk allowed vlan {0}".format(allowed_vlans))