Skip to content

Commit 6ce46e9

Browse files
Harikrishna Patnalakoushik-das
authored andcommitted
CLOUDSTACK-5730: [Automation]DirectAgentAttache's send command fails due to ArrayIndexOutOfBoundsException; Unable to cleanup hypervisor's datastructures as part of Delete Account Job
Signed-off-by: Koushik Das <koushik@apache.org>
1 parent 3fe9426 commit 6ce46e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎engine/orchestration/src/com/cloud/vm/VirtualMachineManagerImpl.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ protected void advanceExpunge(VMInstanceVO vm) throws ResourceUnavailableExcepti
487487

488488
Long hostId = vm.getHostId() != null ? vm.getHostId() : vm.getLastHostId();
489489

490-
if (volumeExpungeCommands != null && hostId != null) {
490+
if (volumeExpungeCommands != null && volumeExpungeCommands.size() > 0 && hostId != null) {
491491
Commands cmds = new Commands(Command.OnError.Stop);
492492

493493
for (Command volumeExpungeCommand : volumeExpungeCommands) {

0 commit comments

Comments
 (0)