Skip to content

Commit

Permalink
fix(storage): handle pathnotfound for walk call
Browse files Browse the repository at this point in the history
  • Loading branch information
elee1766 committed Nov 6, 2023
1 parent dd3c246 commit 88839b0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/storage/imagestore/imagestore.go
Original file line number Diff line number Diff line change
Expand Up @@ -392,10 +392,18 @@ func (is *ImageStore) GetNextRepository(repo string) (string, error) {

driverErr := &driver.Error{}

<<<<<<< HEAD
// some s3 implementations (eg, digitalocean spaces) will return pathnotfounderror for walk but not list
// therefore, we must also catch that error here.
if errors.As(err, &driver.PathNotFoundError{}) {
is.log.Debug().Msg("empty rootDir")
=======
// some s3 implementations (eg, digitalocean spaces) will return pathnotfounderror for walk but not list
// therefore, we must also catch that error here.
if errors.As(err, &driver.PathNotFoundError{}) {
is.log.Debug().Msg("empty rootDir")

>>>>>>> ef0d52e (fix(storage): handle pathnotfound for walk call)
return "", nil
}

Expand Down

0 comments on commit 88839b0

Please sign in to comment.