summaryrefslogtreecommitdiff
path: root/cmd/podman
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/podman')
-rw-r--r--cmd/podman/play/kube.go13
1 files changed, 12 insertions, 1 deletions
diff --git a/cmd/podman/play/kube.go b/cmd/podman/play/kube.go
index 1fbf24d5e..d2cfe8d43 100644
--- a/cmd/podman/play/kube.go
+++ b/cmd/podman/play/kube.go
@@ -96,7 +96,18 @@ func kube(cmd *cobra.Command, args []string) error {
fmt.Fprintf(os.Stderr, l)
}
- fmt.Printf("Pod:\n%s\n", report.Pod)
+ switch len(report.Pods) {
+ case 0:
+ return nil
+ case 1:
+ fmt.Printf("Pod:\n")
+ default:
+ fmt.Printf("Pods:\n")
+ }
+ for _, pod := range report.Pods {
+ fmt.Println(pod)
+ }
+
switch len(report.Containers) {
case 0:
return nil