summaryrefslogtreecommitdiff
path: root/cmd/podman/ps.go
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2018-10-25 13:53:12 -0500
committerbaude <bbaude@redhat.com>2018-10-25 16:15:11 -0500
commitf641c2d9384ea5cbc3f2f6a4188d54c33a85c17b (patch)
tree9ce5ce8dea1fd4eec3f635819b60b2cf875a1394 /cmd/podman/ps.go
parentf6e7807fa5970f328c1221c2e0c0aafe5f1c4b34 (diff)
downloadpodman-f641c2d9384ea5cbc3f2f6a4188d54c33a85c17b.tar.gz
podman-f641c2d9384ea5cbc3f2f6a4188d54c33a85c17b.tar.bz2
podman-f641c2d9384ea5cbc3f2f6a4188d54c33a85c17b.zip
fix bug in rm -fa parallel deletes
Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'cmd/podman/ps.go')
-rw-r--r--cmd/podman/ps.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd/podman/ps.go b/cmd/podman/ps.go
index fa333f952..d63618e58 100644
--- a/cmd/podman/ps.go
+++ b/cmd/podman/ps.go
@@ -351,7 +351,9 @@ func psCmd(c *cli.Context) error {
// Output Namespace headers
fmt.Fprintf(w, "\n%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s", hid, hnames, nspid, nscgroup, nsipc, nsmnt, nsnet, nspidns, nsuserns, nsuts)
}
-
+ if len(pss) == 0 {
+ fmt.Fprint(w, "\n")
+ }
// Now iterate each container and output its information
for _, container := range pss {