mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
fix: update the fsstore_test.go
Signed-off-by: saltbo <saltbo@foxmail.com>
This commit is contained in:
parent
cc90e819bc
commit
6f878d92fb
@ -657,7 +657,7 @@ func mapFromCheckpoint(store *fsStore, uid, resourceVersion string) (map[string]
|
||||
m := map[string]string{}
|
||||
for _, f := range files {
|
||||
// expect no subdirs, only regular files
|
||||
if !f.Mode().IsRegular() {
|
||||
if !f.Type().IsRegular() {
|
||||
return nil, fmt.Errorf("expect only regular files in checkpoint dir %q", uid)
|
||||
}
|
||||
// read the file contents and build the map
|
||||
|
Loading…
Reference in New Issue
Block a user