From b3d388228a01f32fb50b2b8666219bec6a7c01da Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Tue, 23 Sep 2025 02:43:21 +0300 Subject: [PATCH] Fix formatter error handling in CSI --- csi/src/nodeserver.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/csi/src/nodeserver.go b/csi/src/nodeserver.go index ac33a801..ce764d71 100644 --- a/csi/src/nodeserver.go +++ b/csi/src/nodeserver.go @@ -439,7 +439,8 @@ func (ns *NodeServer) NodeStageVolume(ctx context.Context, req *csi.NodeStageVol else { // Check existing format - existingFormat, err := diskMounter.GetDiskFormat(devicePath) + var existingFormat string + existingFormat, err = diskMounter.GetDiskFormat(devicePath) if (err != nil) { klog.Errorf("failed to get disk format for path %s, error: %v", err)