mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-09-26 01:27:53 +00:00
ps displays incorrect exit code
The exit code should be derived in the batch operation and pulled from the batchinfo struct. Resolves issue #407 Signed-off-by: baude <bbaude@redhat.com> Closes: #408 Approved by: rhatdan
This commit is contained in:
parent
e5ddf34e64
commit
f47a5be60d
1 changed files with 1 additions and 1 deletions
|
|
@ -441,7 +441,7 @@ func getTemplateOutput(containers []*libpod.Container, opts psOptions) ([]psTemp
|
|||
|
||||
switch batchInfo.conState {
|
||||
case libpod.ContainerStateStopped:
|
||||
status = fmt.Sprintf("Exited (%d) %s ago", exitCode, runningFor)
|
||||
status = fmt.Sprintf("Exited (%d) %s ago", batchInfo.exitCode, runningFor)
|
||||
case libpod.ContainerStateRunning:
|
||||
status = "Up " + runningFor + " ago"
|
||||
case libpod.ContainerStatePaused:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue