Skip to content

Commit

Permalink
fix(restore): look for full path, not file (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
KellyMerrick authored Jun 14, 2023
1 parent 72bb279 commit a458bcf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/vela-s3-cache/rebuild.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (r *Rebuild) Exec(mc *minio.Client) error {
return err
}

stat, err := os.Stat(r.Filename)
stat, err := os.Stat(f)
if err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion cmd/vela-s3-cache/restore.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func (r *Restore) Exec(mc *minio.Client) error {
return err
}

logrus.Infof("downloaded %s to %s on local filesystem, ", humanize.Bytes(uint64(stat.Size())), r.Filename)
logrus.Infof("downloaded %s to %s on local filesystem", humanize.Bytes(uint64(stat.Size())), r.Filename)

logrus.Debug("getting current working directory")

Expand Down

0 comments on commit a458bcf

Please sign in to comment.