summaryrefslogtreecommitdiff
path: root/cmd/podman/play
diff options
context:
space:
mode:
authortheunrealgeek <theunrealgeek@gmail.com>2020-05-30 00:49:41 -0700
committertheunrealgeek <theunrealgeek@gmail.com>2020-06-02 20:33:16 -0700
commitc739b58ad55e776687f353fd75c3807a357f9ad7 (patch)
tree466de5f6f90d3fbbf6c60b845a5b799b2e10e06b /cmd/podman/play
parent103c9225a991f771fc171260aade1125ef1ccf49 (diff)
downloadpodman-c739b58ad55e776687f353fd75c3807a357f9ad7.tar.gz
podman-c739b58ad55e776687f353fd75c3807a357f9ad7.tar.bz2
podman-c739b58ad55e776687f353fd75c3807a357f9ad7.zip
Add tests for Deployment Kind and minor fix for play kube output
Signed-off-by: Aditya Kamath <theunrealgeek@gmail.com>
Diffstat (limited to 'cmd/podman/play')
-rw-r--r--cmd/podman/play/kube.go11
1 files changed, 3 insertions, 8 deletions
diff --git a/cmd/podman/play/kube.go b/cmd/podman/play/kube.go
index 17f3b430d..8d9a26151 100644
--- a/cmd/podman/play/kube.go
+++ b/cmd/podman/play/kube.go
@@ -98,15 +98,8 @@ func kube(cmd *cobra.Command, args []string) error {
}
}
- 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.Printf("Pod:\n")
fmt.Println(pod.ID)
switch len(pod.Containers) {
@@ -120,6 +113,8 @@ func kube(cmd *cobra.Command, args []string) error {
for _, ctr := range pod.Containers {
fmt.Println(ctr)
}
+ // Empty line for space for next block
+ fmt.Println()
}
return nil