mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-14 18:53:35 +00:00
nfs: address golangci-lint issues
addressing golangci-lint issues for the nfs code. Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
committed by
mergify[bot]
parent
4b7cafe821
commit
48d2e2ce2d
@ -127,12 +127,12 @@ func (nv *NFSVolume) CreateExport(backend *csi.Volume) error {
|
||||
if !nv.connected {
|
||||
return fmt.Errorf("can not created export for %q: %w", nv, ErrNotConnected)
|
||||
}
|
||||
|
||||
fs := backend.VolumeContext["fsName"]
|
||||
nfsCluster := backend.VolumeContext["nfsCluster"]
|
||||
path := backend.VolumeContext["subvolumePath"]
|
||||
secTypes := backend.VolumeContext["secTypes"]
|
||||
clients := backend.VolumeContext["clients"]
|
||||
vctx := backend.GetVolumeContext()
|
||||
fs := vctx["fsName"]
|
||||
nfsCluster := vctx["nfsCluster"]
|
||||
path := vctx["subvolumePath"]
|
||||
secTypes := vctx["secTypes"]
|
||||
clients := vctx["clients"]
|
||||
|
||||
err := nv.setNFSCluster(nfsCluster)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user