diff --git a/plugins/modules/vmware_portgroup_info.py b/plugins/modules/vmware_portgroup_info.py index b94be38db..08d7d51e2 100644 --- a/plugins/modules/vmware_portgroup_info.py +++ b/plugins/modules/vmware_portgroup_info.py @@ -162,7 +162,7 @@ def normalize_pg_info(portgroup_obj, policy_info): else: pg_info_dict['failover_active'] = spec.policy.nicTeaming.nicOrder.activeNic pg_info_dict['failover_standby'] = spec.policy.nicTeaming.nicOrder.standbyNic - if spec.policy.nicTeaming.failureCriteria is None: + if spec.policy.nicTeaming.failureCriteria is None or spec.policy.nicTeaming.failureCriteria.checkBeacon is None: pg_info_dict['failure_detection'] = "No override" else: if spec.policy.nicTeaming.failureCriteria.checkBeacon: