mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-11 05:17:41 +03:00
feature #1791: proper state checking for simple save action as well
This commit is contained in:
parent
482ae7d228
commit
4167c14066
@ -2589,8 +2589,8 @@ int VirtualMachine::save_disk(const string& disk_id,
|
||||
|
||||
int num_disks = obj_template->get("DISK",disks);
|
||||
|
||||
if (lcm_state != HOTPLUG_SAVEAS || lcm_state != HOTPLUG_SAVEAS_SUSPENDED
|
||||
|| lcm_state != HOTPLUG_SAVEAS_POWEROFF )
|
||||
if (lcm_state != HOTPLUG_SAVEAS && lcm_state != HOTPLUG_SAVEAS_SUSPENDED
|
||||
&& lcm_state != HOTPLUG_SAVEAS_POWEROFF )
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user