Fix formatter error handling in CSI

This commit is contained in:
Vitaliy Filippov
2025-09-23 02:43:21 +03:00
parent bcde9de7da
commit b3d388228a
+2 -1
View File
@@ -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)