Skip to content

Commit

Permalink
Merge pull request #4018 from giuseppe/fix-error-message-rootless
Browse files Browse the repository at this point in the history
rootless: report the correct error
  • Loading branch information
openshift-merge-robot authored Sep 13, 2019
2 parents e8a44eb + 466694b commit 9b83882
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/podman/main_local.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,9 @@ func setupRootless(cmd *cobra.Command, args []string) error {
if !ownsCgroup {
unitName := fmt.Sprintf("podman-%d.scope", os.Getpid())
if err := utils.RunUnderSystemdScope(os.Getpid(), "user.slice", unitName); err != nil {
conf, err := runtime.GetConfig()
if err != nil {
return err
conf, err2 := runtime.GetConfig()
if err2 != nil {
return err2
}
if conf.CgroupManager == libpod.SystemdCgroupsManager {
logrus.Warnf("Failed to add podman to systemd sandbox cgroup: %v", err)
Expand Down

0 comments on commit 9b83882

Please sign in to comment.