From 5a4caae0026ea7f322038168dba46d7f3e0c19cc Mon Sep 17 00:00:00 2001 From: Marius Rieder Date: Fri, 6 May 2022 10:14:57 +0200 Subject: [PATCH] vmware_vswitch_info: Remove unused variables --- plugins/modules/vmware_vswitch_info.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/plugins/modules/vmware_vswitch_info.py b/plugins/modules/vmware_vswitch_info.py index 11fee7f93f..acb2a1b31b 100644 --- a/plugins/modules/vmware_vswitch_info.py +++ b/plugins/modules/vmware_vswitch_info.py @@ -25,10 +25,10 @@ - PyVmomi options: policies: + version_added: '2.4.0' description: - Gather information about Security, Traffic Shaping, as well as Teaming and failover. - The property C(ts) stands for Traffic Shaping and C(lb) for Load Balancing. - version_added: '2.4.0' type: bool default: false cluster_name: @@ -146,9 +146,6 @@ def normalize_vswitch_info(vswitch_obj, policy_info): if policy_info: # Security info if spec.policy.security: - promiscuous_mode = spec.policy.security.allowPromiscuous - mac_changes = spec.policy.security.macChanges - forged_transmits = spec.policy.security.forgedTransmits vswitch_info_dict['security'] = ( [ spec.policy.security.allowPromiscuous,