Merge pull request #9858 from rhatdan/warn

[NO TESTS NEEDED] Drop Warning to Info, if cgroups not mounted
This commit is contained in:
OpenShift Merge Robot
2021-03-29 17:04:24 +00:00
committed by GitHub

View File

@ -67,7 +67,7 @@ func (ic *ContainerEngine) SetupRootless(_ context.Context, cmd *cobra.Command)
if os.Geteuid() == 0 { if os.Geteuid() == 0 {
ownsCgroup, err := cgroups.UserOwnsCurrentSystemdCgroup() ownsCgroup, err := cgroups.UserOwnsCurrentSystemdCgroup()
if err != nil { if err != nil {
logrus.Warnf("Failed to detect the owner for the current cgroup: %v", err) logrus.Infof("Failed to detect the owner for the current cgroup: %v", err)
} }
if !ownsCgroup { if !ownsCgroup {
conf, err := ic.Config(context.Background()) conf, err := ic.Config(context.Background())