mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-23 05:04:56 +09:00
M #-: Fix scheduler initialization
This commit is contained in:
1 file changed
+7
-7
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user