mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
Fix MountError Test
This commit is contained in:
parent
22e8189f40
commit
727582311f
@ -99,7 +99,7 @@ func IsOperationFinishedError(err error) bool {
|
|||||||
// IsFilesystemMismatchError checks if mount failed because requested filesystem
|
// IsFilesystemMismatchError checks if mount failed because requested filesystem
|
||||||
// on PVC and actual filesystem on disk did not match
|
// on PVC and actual filesystem on disk did not match
|
||||||
func IsFilesystemMismatchError(err error) bool {
|
func IsFilesystemMismatchError(err error) bool {
|
||||||
mountError := &mount.MountError{}
|
mountError := mount.MountError{}
|
||||||
if errors.As(err, &mountError) && mountError.Type == mount.FilesystemMismatch {
|
if errors.As(err, &mountError) && mountError.Type == mount.FilesystemMismatch {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user