mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
parent
45b35e7768
commit
b02e28fb51
@ -2085,14 +2085,20 @@ string VirtualMachine::get_import_state() 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();
|
||||
|
||||
return vmm->is_imported_action_supported(get_vmm_mad(), action);
|
||||
return vmm->is_imported_action_supported(vmm_mad, action);
|
||||
}
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
|
Loading…
x
Reference in New Issue
Block a user