mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-10 01:17:40 +03:00
(cherry picked from commit b02e28fb51
)
This commit is contained in:
parent
34c1d4345c
commit
44148d9600
@ -2085,14 +2085,20 @@ string VirtualMachine::get_import_state() const
|
|||||||
|
|
||||||
bool VirtualMachine::is_imported_action_supported(VMActions::Action action) const
|
bool VirtualMachine::is_imported_action_supported(VMActions::Action action) const
|
||||||
{
|
{
|
||||||
if (!hasHistory())
|
string vmm_mad;
|
||||||
|
|
||||||
|
if (hasHistory())
|
||||||
{
|
{
|
||||||
return false;
|
vmm_mad = get_vmm_mad();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
user_obj_template->get("HYPERVISOR", vmm_mad);
|
||||||
}
|
}
|
||||||
|
|
||||||
VirtualMachineManager * vmm = Nebula::instance().get_vmm();
|
VirtualMachineManager * vmm = Nebula::instance().get_vmm();
|
||||||
|
|
||||||
return vmm->is_imported_action_supported(get_vmm_mad(), action);
|
return vmm->is_imported_action_supported(vmm_mad, action);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
||||||
|
Loading…
Reference in New Issue
Block a user