mirror of https://github.com/apache/cloudstack.git
Fix hostId verification on unsuccessful expunge operation (#10418)
This commit is contained in:
parent
4b432c82ca
commit
c80b8860e4
|
|
@ -707,7 +707,7 @@ public class VirtualMachineManagerImpl extends ManagerBase implements VirtualMac
|
|||
|
||||
private void handleUnsuccessfulExpungeOperation(List<Command> finalizeExpungeCommands, List<Command> nicExpungeCommands,
|
||||
VMInstanceVO vm, Long hostId) throws OperationTimedoutException, AgentUnavailableException {
|
||||
if (CollectionUtils.isNotEmpty(finalizeExpungeCommands) || CollectionUtils.isNotEmpty(nicExpungeCommands) && (hostId != null)) {
|
||||
if ((CollectionUtils.isNotEmpty(finalizeExpungeCommands) || CollectionUtils.isNotEmpty(nicExpungeCommands)) && hostId != null) {
|
||||
final Commands cmds = new Commands(Command.OnError.Stop);
|
||||
addAllExpungeCommandsFromList(finalizeExpungeCommands, cmds, vm);
|
||||
addAllExpungeCommandsFromList(nicExpungeCommands, cmds, vm);
|
||||
|
|
|
|||
Loading…
Reference in New Issue