Skip to content

Commit

Permalink
Drop warning file 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 committed Jan 15, 2024
1 parent 9b53f1e commit bb959cd
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 bb959cd

Please sign in to comment.