M #-: Prevent monitor ERROR looping for vcenter

This commit is contained in:
Ruben S. Montero committed 2020-05-25 21:58:28 +02:00
1 parent 707f48980c
commit a9f1d3395f
1 file changed
+1 -2
@@ -152,8 +152,7 @@ void HostMonitorManager::update_host(int oid, const std::string &xml)
{
stop_host_monitor(host);
}
else if ((old_state == Host::OFFLINE || old_state == Host::ERROR)
&& !host->monitor_in_progress())
else if (old_state == Host::OFFLINE && !host->monitor_in_progress())
{
start_host_monitor(host);
}