mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 20:02:38 +09:00
Check if host exist in finalize action
This commit is contained in:
1 parent
df5d2638f8
commit
e484ecbb21
1 file changed
+6
@@ -795,6 +795,12 @@ 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);
|
||||
return -1;
|
||||
}
|
||||
is_public_host = host->is_public_cloud();
|
||||
host->unlock();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user