mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-19 03:12:55 +09:00
feature #1791: proper state checking
This commit is contained in:
1 parent
f3d1b8d8a9
commit
482ae7d228
1 file changed
+2
-2
@@ -2636,8 +2636,8 @@ int VirtualMachine::save_disk_hot(const string& disk_id,
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user