1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-16 22:50:10 +03:00

Bug #3876: Initialize error message

This commit is contained in:
Ruben S. Montero 2015-09-01 11:39:21 +02:00
parent 972edf78e3
commit ea1af3246a

View File

@ -795,13 +795,17 @@ int DispatchManager::finalize(
if(host_id != -1)
{
host = hpool->get(host_id,true);
if ( host == 0 )
{
oss << "Error getting host " << host_id;
NebulaLog::log("DiM",Log::ERROR,oss);
error_str = oss.str();
return -1;
}
is_public_host = host->is_public_cloud();
host->unlock();
}