Merge pull request #29300 from prayag0one4/fix/issue-3-volumes-mountcount

volumes: propagate error from MountCount in VolumeMounted
This commit is contained in:
Matt Heon authored and GitHub committed 2026-08-05 20:43:00 -04:00
commit 615e69fdb6
1 file changed
+1 -2
+1 -2
View File
@@ -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