Skip to content

Commit

Permalink
Merge pull request moby#4584 from tonistiigi/submount-errors
Browse files Browse the repository at this point in the history
oci: fix error handling on submount calls
  • Loading branch information
tonistiigi authored Jan 25, 2024
2 parents c1a9bdb + 42d866e commit 5092e0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions executor/oci/spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,12 +233,12 @@ func (s *submounts) subMount(m mount.Mount, subPath string) (mount.Mount, error)
}
h, err := hashstructure.Hash(m, hashstructure.FormatV2, nil)
if err != nil {
return mount.Mount{}, nil
return mount.Mount{}, err
}
if mr, ok := s.m[h]; ok {
sm, err := sub(mr.mount, subPath)
if err != nil {
return mount.Mount{}, nil
return mount.Mount{}, err
}
return sm, nil
}
Expand Down

0 comments on commit 5092e0f

Please sign in to comment.