Skip to content

Commit bc86103

Browse files
author
Likitha Shetty
committed
CLOUDSTACK-5216. delete volume failed due to Exception: java.lang.Exception" while destroying Vms
1 parent d21058c commit bc86103

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎plugins/hypervisors/vmware/src/com/cloud/storage/resource/VmwareStorageProcessor.java‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1517,7 +1517,9 @@ public Answer deleteVolume(DeleteCommand cmd) {
15171517
vmMo.destroy();
15181518

15191519
// this.hostService.handleDatastoreAndVmdkDetach(iScsiName, storageHost, storagePort);
1520-
this.hostService.removeManagedTargetsFromCluster(managedIqns);
1520+
if (managedIqns != null && !managedIqns.isEmpty()) {
1521+
this.hostService.removeManagedTargetsFromCluster(managedIqns);
1522+
}
15211523

15221524
for (NetworkDetails netDetails : networks) {
15231525
if (netDetails.getGCTag() != null && netDetails.getGCTag().equalsIgnoreCase("true")) {

0 commit comments

Comments
 (0)