1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-27 14:03:40 +03:00

F #3859: Start monitoring only for new hosts (#4396)

This commit is contained in:
Pavel Czerný 2020-03-23 11:08:18 +01:00 committed by GitHub
parent 43daf0a587
commit df899c0ebb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -165,7 +165,12 @@ void HostMonitorManager::update_host(int oid, const std::string &xml)
{
hpool->add_object(xml);
start_host_monitor(oid);
host = hpool->get(oid);
if (host->state() == Host::HostState::INIT)
{
start_host_monitor(host);
}
}
}