1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

M #-: Fix scheduler initialization

(cherry picked from commit 49ef37a484e574972e4a476ac2a168d0cdd63ef0)
This commit is contained in:
Ruben S. Montero 2020-03-03 12:37:34 +01:00
parent 42d3ab6831
commit f2d87cd988
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -268,16 +268,16 @@ void Scheduler::start()
bool success = xmlrpc_c::value_boolean(values[0]);
string message = xmlrpc_c::value_string(values[1]);
if (!success ||(oned_conf.from_xml(message) != 0))
if (success && (oned_conf.from_xml(message) == 0))
{
ostringstream oss;
oss << "Cannot contact oned, will retry... Error: " << message;
NebulaLog::log("SCHED", Log::ERROR, oss);
break;
}
break;
ostringstream oss;
oss << "Cannot contact oned, will retry... Error: " << message;
NebulaLog::log("SCHED", Log::ERROR, oss);
}
catch (exception const& e)
{