summaryrefslogtreecommitdiff
path: root/cmd/podman
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-03-18 12:52:07 -0700
committerGitHub <noreply@github.com>2019-03-18 12:52:07 -0700
commit41019f747280ba2c47df2ce6f83ddebfc2000745 (patch)
tree03cdbe5b9f57315cc3052b59e081503beccdfdad /cmd/podman
parent03160dcf489f20102feb0f35b6bdb94fbafbc443 (diff)
parent082d792693504848e186a29db717ce20c7ff7774 (diff)
downloadpodman-41019f747280ba2c47df2ce6f83ddebfc2000745.tar.gz
podman-41019f747280ba2c47df2ce6f83ddebfc2000745.tar.bz2
podman-41019f747280ba2c47df2ce6f83ddebfc2000745.zip
Merge pull request #2632 from debarshiray/wip/rishi/podman-rm-exit-with-125-for-bogus-and-running
Make 'podman rm' exit with 125 if it had a bogus & a running container
Diffstat (limited to 'cmd/podman')
-rw-r--r--cmd/podman/rm.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd/podman/rm.go b/cmd/podman/rm.go
index 56aaae9eb..299420bb6 100644
--- a/cmd/podman/rm.go
+++ b/cmd/podman/rm.go
@@ -195,5 +195,10 @@ func rmCmd(c *cliconfig.RmValues) error {
exitCode = 1
}
}
+
+ if failureCnt > 0 {
+ exitCode = 125
+ }
+
return err
}