mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-22 20:54:49 +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
@@ -15,6 +15,7 @@
|
||||
/* -------------------------------------------------------------------------- */
|
||||
|
||||
#include "VirtualMachineTemplate.h"
|
||||
#include "Host.h"
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
@@ -151,10 +152,10 @@ bool VirtualMachineTemplate::get_hybrid_hypervisor(string& hypervisor) const
|
||||
bool found_it = false;
|
||||
|
||||
for(int i=0; i < NUM_HYBRID_ATTRIBUTES; i++)
|
||||
{
|
||||
{
|
||||
if(get(HYBRID_ATTRIBUTES[i],attrs))
|
||||
{
|
||||
hypervisor = HYBRID_ATTRIBUTES[i];
|
||||
hypervisor = Host::get_hybrid_hypervisor_by_id(i);
|
||||
found_it = true;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user