Skip to content

Commit

Permalink
vmware_vswitch_info: Remove unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
jiuka committed May 6, 2022
1 parent 45fc038 commit 4ab77a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
minor_changes:
- vmware_vswitch_info - Add support to return security, teaming and traffic shaping policies on vSwitches.
(https://github.com/ansible-collections/community.vmware/pull/1310).
(https://github.com/ansible-collections/community.vmware/pull/1309).
7 changes: 2 additions & 5 deletions plugins/modules/vmware_vswitch_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -98,7 +98,7 @@
],
"failback": true,
"failover_active": ["vmnic1"],
"failover_standby": ["vmnic2],
"failover_standby": ["vmnic2"],
"failure_detection": "link_status_only",
"lb": "loadbalance_srcid",
"notify": true,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 4ab77a0

Please sign in to comment.