Skip to content

Commit c725e6b

Browse files
author
Lou
committed
update after revieww
Signed-off-by: Lou <[email protected]>
1 parent da1b94e commit c725e6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

iscsi/iscsi.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,11 +370,11 @@ func DisconnectVolume(c Connector) error {
370370
debug.Printf("Disconnecting volume in path %s.\n", c.DevicePath)
371371
if c.Multipath {
372372
debug.Printf("Removing multipath device.\n")
373-
err := FlushMultipathDevice(c.DevicePath)
373+
devices, err := GetSysDevicesFromMultipathDevice(c.DevicePath)
374374
if err != nil {
375375
return err
376376
}
377-
devices, err := GetSysDevicesFromMultipathDevice(c.DevicePath)
377+
err := FlushMultipathDevice(c.DevicePath)
378378
if err != nil {
379379
return err
380380
}

0 commit comments

Comments
 (0)