Skip to content

Commit 7563f6b

Browse files
authored
CIDG-1395 : Changed the placement of logoutAndDeleteIscsiTarget() call (#157)
* CIDG-1395 : Changed the placement of logoutAndDeleteIscsiTarget() call Signed-off-by: jyotsna-l <[email protected]> * Reverted the changes for calling logoutAndDeleteIscsiTarget function Signed-off-by: jyotsna-l <[email protected]>
1 parent 97cb25c commit 7563f6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

linux/multipath.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ func cleanupDeviceAndSlaves(dev *model.Device) (err error) {
239239
}
240240

241241
//delete all physical paths of the device
242-
if (!isFC && dev.IscsiTargets != nil )&& (!isGst || dev.StorageVendor == "3PARdata") {
242+
if (!isFC && dev.IscsiTargets != nil && !isGst) {
243243
log.Debugf("volume scoped target %+v, initiating iscsi logout and delete", dev.IscsiTargets)
244244
err = logoutAndDeleteIscsiTarget(dev)
245245
if err != nil {

0 commit comments

Comments
 (0)