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:
parent
42d3ab6831
commit
f2d87cd988
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user