mirror of https://github.com/apache/cloudstack.git
Fixing an issue with expunge logic
This commit is contained in:
parent
452c20b242
commit
90e945fd74
|
|
@ -492,7 +492,7 @@ public class VirtualMachineManagerImpl extends ManagerBase implements VirtualMac
|
|||
|
||||
Long hostId = vm.getHostId() != null ? vm.getHostId() : vm.getLastHostId();
|
||||
|
||||
if (volumeExpungeCommands != null && hostId != null) {
|
||||
if (volumeExpungeCommands != null && volumeExpungeCommands.size() > 0 && hostId != null) {
|
||||
Commands cmds = new Commands(Command.OnError.Stop);
|
||||
|
||||
for (Command volumeExpungeCommand : volumeExpungeCommands) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue