mirror of https://github.com/apache/cloudstack.git
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>
This commit is contained in:
parent
3fe9426824
commit
6ce46e94f5
|
|
@ -487,7 +487,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