M #-: Fix DS id while resuming undeployed VM (#837)

(cherry picked from commit 05e235cde3)
This commit is contained in:
Pavel Czerný authored and Ruben S. Montero committed 2021-02-19 09:45:35 +01:00
1 parent 668d6346c9
commit cfbfbf48ad
2 files changed
+9 -5

No files matched your search

+4 -1
View File
@@ -878,7 +878,10 @@ void VirtualMachineDeploy::request_execute(xmlrpc_c::paramList const& paramList,
vm->get_action() == VMActions::UNDEPLOY_ACTION ||
vm->get_action() == VMActions::UNDEPLOY_HARD_ACTION))
{
ds_id = vm->get_ds_id();
if (ds_id == -1)
{
ds_id = vm->get_ds_id();
}
check_nic_auto = false;
}