mirror of
https://github.com/containers/podman.git
synced 2026-10-09 03:32:48 -04:00
Merge pull request #29300 from prayag0one4/fix/issue-3-volumes-mountcount
volumes: propagate error from MountCount in VolumeMounted
This commit is contained in:
1 file changed
+1
-2
@@ -209,8 +209,7 @@ func (ic *ContainerEngine) VolumeMounted(_ context.Context, nameOrID string) (*e
|
||||
}
|
||||
mountCount, err := vol.MountCount()
|
||||
if err != nil {
|
||||
// FIXME: this error should probably be returned
|
||||
return &entities.BoolReport{Value: false}, nil //nolint: nilerr
|
||||
return nil, err
|
||||
}
|
||||
if mountCount > 0 {
|
||||
return &entities.BoolReport{Value: true}, nil
|
||||
|
||||
Reference in new issue
Block a user