Ensure bond count is compared with actual qty

This commit is contained in:
Joshua Boniface 2023-10-22 02:28:04 -04:00
parent 68124db323
commit 50aabde320
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ class MonitoringPluginScript(MonitoringPlugin):
for slave_interface in slave_interfaces:
if slave_interface[1] == 'up':
slave_interface_up_count += 1
if slave_interface_up_count < 2:
if slave_interface_up_count < len(slave_interfaces):
messages.append(f"{dev} DEGRADED with {slave_interface_up_count} active slaves")
health_delta += 10
else: