From 727582311f6e4211d310fd93fc512d7eb002afa4 Mon Sep 17 00:00:00 2001 From: saad-ali Date: Mon, 2 Mar 2020 18:15:30 -0800 Subject: [PATCH] Fix MountError Test --- pkg/volume/util/types/types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/volume/util/types/types.go b/pkg/volume/util/types/types.go index f3de7c97e51..8dab5fcfa83 100644 --- a/pkg/volume/util/types/types.go +++ b/pkg/volume/util/types/types.go @@ -99,7 +99,7 @@ func IsOperationFinishedError(err error) bool { // IsFilesystemMismatchError checks if mount failed because requested filesystem // on PVC and actual filesystem on disk did not match func IsFilesystemMismatchError(err error) bool { - mountError := &mount.MountError{} + mountError := mount.MountError{} if errors.As(err, &mountError) && mountError.Type == mount.FilesystemMismatch { return true }