summaryrefslogtreecommitdiff
path: root/libpod/container_exec.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-07-22 05:34:17 -0400
committerGitHub <noreply@github.com>2020-07-22 05:34:17 -0400
commitc0998f728a9a6d9344bdacb4d4820ea36e132f44 (patch)
treeb9fe92f61be5901c55a4cf4beac216311847dd4b /libpod/container_exec.go
parent344a791ac2019b078dd334ef0a492ee37fe0a937 (diff)
parent90e547ec1a0cacd2e2b5f2365972cb26484026a2 (diff)
downloadpodman-c0998f728a9a6d9344bdacb4d4820ea36e132f44.tar.gz
podman-c0998f728a9a6d9344bdacb4d4820ea36e132f44.tar.bz2
podman-c0998f728a9a6d9344bdacb4d4820ea36e132f44.zip
Merge pull request #7040 from mheon/no_exec_errmsg
Do not print an error message on non-0 exec exit code
Diffstat (limited to 'libpod/container_exec.go')
-rw-r--r--libpod/container_exec.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/libpod/container_exec.go b/libpod/container_exec.go
index bd04ee9b9..a16aea06d 100644
--- a/libpod/container_exec.go
+++ b/libpod/container_exec.go
@@ -729,10 +729,6 @@ func (c *Container) Exec(config *ExecConfig, streams *define.AttachStreams, resi
return -1, err
}
- if exitCode != 0 {
- return exitCode, errors.Wrapf(define.ErrOCIRuntime, "exec session exited with non-zero exit code %d", exitCode)
- }
-
return exitCode, nil
}