File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -718,14 +718,16 @@ func (s *service) NodePublishVolume(
718
718
719
719
var symlinkPath string
720
720
var devicePath string
721
- if s .useNVMeTCP || s .arrayTransportProtocolMap [symID ] == NvmeTCPTransportProtocol {
721
+ if s .useNVMeTCP {
722
+ log .Infof ("Inside NVMETCP" )
722
723
symlinkPath , devicePath , err = gofsutil .WWNToDevicePathX (context .Background (), vol .NGUID )
723
724
if err != nil || symlinkPath == "" {
724
725
errmsg := fmt .Sprintf ("Device path not found for WWN %s: %s" , deviceWWN , err )
725
726
log .Error (errmsg )
726
727
return nil , status .Error (codes .NotFound , errmsg )
727
728
}
728
729
} else {
730
+ log .Infof ("Not Inside NVMETCP" )
729
731
symlinkPath , devicePath , err = gofsutil .WWNToDevicePathX (context .Background (), deviceWWN )
730
732
if err != nil || symlinkPath == "" {
731
733
errmsg := fmt .Sprintf ("Device path not found for WWN %s: %s" , deviceWWN , err )
You can’t perform that action at this time.
0 commit comments