mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-22 22:30:23 +00:00
Return err from nodeserver
getVolumeNameByID function is already returrning the status.Error return the err as it is. Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
parent
90235c32f8
commit
0f80ec0664
@ -93,7 +93,7 @@ func (ns *NodeServer) NodeStageVolume(ctx context.Context, req *csi.NodeStageVol
|
||||
|
||||
isLegacyVolume, volName, err := getVolumeNameByID(volID, stagingParentPath)
|
||||
if err != nil {
|
||||
return nil, status.Error(codes.InvalidArgument, err.Error())
|
||||
return nil, err
|
||||
}
|
||||
|
||||
var isNotMnt bool
|
||||
|
Loading…
Reference in New Issue
Block a user