Fix MountError Test

This commit is contained in:
saad-ali 2020-03-02 18:15:30 -08:00
parent 22e8189f40
commit 727582311f

View File

@ -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
}