mirror of https://github.com/apache/cloudstack.git
server: Honor vm.destroy.forcestop when expunge a vm (#3965)
When expunge a Running vm, vm will be stopped with forcestop=false which does not make sense. we should honor vm.destroy.forcestop in global setting, or always set forcestop=true.
This commit is contained in:
parent
fef4458830
commit
851534ac17
|
|
@ -502,7 +502,7 @@ public class VirtualMachineManagerImpl extends ManagerBase implements VirtualMac
|
|||
return;
|
||||
}
|
||||
|
||||
advanceStop(vm.getUuid(), false);
|
||||
advanceStop(vm.getUuid(), VmDestroyForcestop.value());
|
||||
vm = _vmDao.findByUuid(vm.getUuid());
|
||||
|
||||
try {
|
||||
|
|
|
|||
Loading…
Reference in New Issue