mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-19 11:22:55 +09:00
feature #2092: Make use of hybrid hypervisor instead of attribute
This commit is contained in:
1 parent
c783b963f4
commit
38ad6cebeb
4 files changed
+26
-13
No files matched your search
@@ -251,7 +251,7 @@ int VirtualMachine::insert(SqlDB * db, string& error_str)
|
||||
string value;
|
||||
int ivalue;
|
||||
float fvalue;
|
||||
|
||||
|
||||
ostringstream oss;
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
@@ -1144,16 +1144,12 @@ int VirtualMachine::automatic_requirements(string& error_str)
|
||||
}
|
||||
}
|
||||
|
||||
static_cast<VirtualMachineTemplate*>(obj_template)->get_hybrid_hypervisor(
|
||||
hypervisor);
|
||||
oss.str("");
|
||||
|
||||
if ( !cluster_id.empty() )
|
||||
{
|
||||
oss << "CLUSTER_ID = " << cluster_id;
|
||||
}
|
||||
|
||||
if ( !hypervisor.empty() )
|
||||
if (static_cast<VirtualMachineTemplate*>(obj_template)->get_hybrid_hypervisor(hypervisor))
|
||||
{
|
||||
if ( !cluster_id.empty() )
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user