diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-09-13 15:24:30 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-13 15:24:30 -0400 |
commit | 473f958e137eb9d8a3a3ef44cf3c17513243c18d (patch) | |
tree | d64e7a41dd760cb1cac2888fef97536279cef915 /cmd/podman/system/reset.go | |
parent | 55a7f89fcae7ed8f16e10d4dae84cbdd3ecb1272 (diff) | |
parent | ba2130ff55d1410407d56c65d5592ee40d20fae2 (diff) | |
download | podman-473f958e137eb9d8a3a3ef44cf3c17513243c18d.tar.gz podman-473f958e137eb9d8a3a3ef44cf3c17513243c18d.tar.bz2 podman-473f958e137eb9d8a3a3ef44cf3c17513243c18d.zip |
Merge pull request #11545 from rhatdan/exitcodes
If container exits with 125 podman should exit with 125
Diffstat (limited to 'cmd/podman/system/reset.go')
-rw-r--r-- | cmd/podman/system/reset.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/podman/system/reset.go b/cmd/podman/system/reset.go index c64d09ed2..8a05bb09f 100644 --- a/cmd/podman/system/reset.go +++ b/cmd/podman/system/reset.go @@ -11,6 +11,7 @@ import ( "github.com/containers/common/pkg/completion" "github.com/containers/podman/v3/cmd/podman/registry" "github.com/containers/podman/v3/cmd/podman/validate" + "github.com/containers/podman/v3/libpod/define" "github.com/containers/podman/v3/pkg/domain/entities" "github.com/containers/podman/v3/pkg/domain/infra" "github.com/sirupsen/logrus" @@ -87,13 +88,13 @@ WARNING! This will remove: engine, err := infra.NewSystemEngine(entities.ResetMode, registry.PodmanConfig()) if err != nil { logrus.Error(err) - os.Exit(125) + os.Exit(define.ExecErrorCodeGeneric) } defer engine.Shutdown(registry.Context()) if err := engine.Reset(registry.Context()); err != nil { logrus.Error(err) - os.Exit(125) + os.Exit(define.ExecErrorCodeGeneric) } os.Exit(0) } |