The logic was issuing a healthcheck if the linkspeed was different
to the majority. But if the difference is good (i.e. better!) we should
not be raising a healthcheck
Signed-off-by: Paul Cuzner <pcuzner@redhat.com>
(cherry picked from commit
74a3599a83b5b1dde094721f7754d284e8acf8fa)
speed_copy = subnet_data.speed_map.copy()
del speed_copy[speed_ptr]
for bad_speed in speed_copy:
+ if bad_speed > speed_ptr:
+ # skip speed is better than most...it can stay!
+ continue
for h in speed_copy[bad_speed]:
host = HostFacts()
host.load_facts(self.mgr.cache.facts[h])