1
0
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:
Jaime Melis 2013-03-08 12:47:53 +01:00
parent 482ae7d228
commit 4167c14066

View File

@ -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;
}