summaryrefslogtreecommitdiff
path: root/cmd/podman/registry/registry.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2021-09-12 08:51:53 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2021-09-13 14:04:01 -0400
commitba2130ff55d1410407d56c65d5592ee40d20fae2 (patch)
tree9be9c9f4001f683a10c4a91d331ba3cadf64cdb8 /cmd/podman/registry/registry.go
parentcc9491447479844ffdd27ba1c310d7e0a5a59a79 (diff)
downloadpodman-ba2130ff55d1410407d56c65d5592ee40d20fae2.tar.gz
podman-ba2130ff55d1410407d56c65d5592ee40d20fae2.tar.bz2
podman-ba2130ff55d1410407d56c65d5592ee40d20fae2.zip
If container exits with 125 podman should exit with 125
fixes: https://github.com/containers/podman/issues/11540 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'cmd/podman/registry/registry.go')
-rw-r--r--cmd/podman/registry/registry.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/cmd/podman/registry/registry.go b/cmd/podman/registry/registry.go
index 607ef6d8e..e1ab14297 100644
--- a/cmd/podman/registry/registry.go
+++ b/cmd/podman/registry/registry.go
@@ -23,12 +23,10 @@ type CliCommand struct {
Parent *cobra.Command
}
-const ExecErrorCodeGeneric = 125
-
var (
cliCtx context.Context
containerEngine entities.ContainerEngine
- exitCode = ExecErrorCodeGeneric
+ exitCode = 0
imageEngine entities.ImageEngine
// Commands holds the cobra.Commands to present to the user, including