feature #1791: proper state checking for simple save action as well

This commit is contained in:
Jaime Melis committed 2013-03-08 12:47:53 +01:00
1 parent 482ae7d228
commit 4167c14066
1 file changed
+2 -2
+2 -2
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;
}