Skip to content

Commit

Permalink
CIDG-1395 : Changed the placement of logoutAndDeleteIscsiTarget() call (
Browse files Browse the repository at this point in the history
#157)

* CIDG-1395 : Changed the placement of logoutAndDeleteIscsiTarget() call

Signed-off-by: jyotsna-l <jyotsna.l@hpe.com>

* Reverted the changes for calling logoutAndDeleteIscsiTarget function

Signed-off-by: jyotsna-l <jyotsna.l@hpe.com>
  • Loading branch information
jyotsnalothe authored Jun 28, 2021
1 parent 97cb25c commit 7563f6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linux/multipath.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ func cleanupDeviceAndSlaves(dev *model.Device) (err error) {
}

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

0 comments on commit 7563f6b

Please sign in to comment.