Skip to content

Commit

Permalink
Drop warning to info on missing content from mounts.conf
Browse files Browse the repository at this point in the history
quay.io/buildah/stable and quay.io/podman/stable images
now forward the mounts.conf subscriptions into their containers
but if the host is not using subscription manager these pass throughs
warn about missing files, which is not useful to the user.

fixes: containers/podman#20812

Signed-off-by: Daniel J Walsh <[email protected]>
  • Loading branch information
rhatdan authored and kwilczynski committed Mar 13, 2024
1 parent 9d1c51a commit e32c25e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/subscriptions/subscriptions.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ func addSubscriptionsFromMountsFile(filePath, mountLabel, containerRunDir string
fileInfo, err := os.Stat(hostDirOrFile)
if err != nil {
if errors.Is(err, os.ErrNotExist) {
logrus.Warnf("Path %q from %q doesn't exist, skipping", hostDirOrFile, filePath)
logrus.Infof("Path %q from %q doesn't exist, skipping", hostDirOrFile, filePath)
continue
}
return nil, err
Expand Down

0 comments on commit e32c25e

Please sign in to comment.