mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
Allow to migrate VMs with no cluster requirements
This commit is contained in:
parent
5dcdd2af56
commit
45533cf3d8
@ -1184,7 +1184,7 @@ void VirtualMachineMigrate::request_execute(xmlrpc_c::paramList const& paramList
|
||||
|
||||
host->unlock();
|
||||
|
||||
if (cluster_ids.count(cluster_id) == 0)
|
||||
if (!cluster_ids.empty() && cluster_ids.count(cluster_id) == 0)
|
||||
{
|
||||
ostringstream oss;
|
||||
|
||||
@ -1246,7 +1246,7 @@ void VirtualMachineMigrate::request_execute(xmlrpc_c::paramList const& paramList
|
||||
}
|
||||
}
|
||||
|
||||
if (ds_cluster_ids.count(cluster_id) == 0)
|
||||
if (!ds_cluster_ids.empty() && ds_cluster_ids.count(cluster_id) == 0)
|
||||
{
|
||||
ostringstream oss;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user