Fixing an issue with expunge logic

This commit is contained in:
Mike Tutkowski 2014-01-20 16:25:39 -07:00
parent 452c20b242
commit 90e945fd74
1 changed files with 1 additions and 1 deletions

View File

@ -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) {