summaryrefslogtreecommitdiff
path: root/cmd/podman/play/kube.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-01-12 13:15:35 -0500
committerGitHub <noreply@github.com>2021-01-12 13:15:35 -0500
commitdb5e7ec4c42adf8ff97d9b19116ab6dbcbb616cd (patch)
treea1afbf91732f4b20b2cbacb460a3b7b60d6b6919 /cmd/podman/play/kube.go
parent0ccc88813e3e3a385ecdefbe971c1664193cd682 (diff)
parent8452b768ec96e84cd09766bddb65a34835844d6d (diff)
downloadpodman-db5e7ec4c42adf8ff97d9b19116ab6dbcbb616cd.tar.gz
podman-db5e7ec4c42adf8ff97d9b19116ab6dbcbb616cd.tar.bz2
podman-db5e7ec4c42adf8ff97d9b19116ab6dbcbb616cd.zip
Merge pull request #8947 from Luap99/cleanup-code
Fix problems reported by staticcheck
Diffstat (limited to 'cmd/podman/play/kube.go')
-rw-r--r--cmd/podman/play/kube.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/cmd/podman/play/kube.go b/cmd/podman/play/kube.go
index 1f54db203..4c44fa30f 100644
--- a/cmd/podman/play/kube.go
+++ b/cmd/podman/play/kube.go
@@ -127,23 +127,23 @@ func kube(cmd *cobra.Command, args []string) error {
for _, pod := range report.Pods {
for _, l := range pod.Logs {
- fmt.Fprintf(os.Stderr, l)
+ fmt.Fprint(os.Stderr, l)
}
}
ctrsFailed := 0
for _, pod := range report.Pods {
- fmt.Printf("Pod:\n")
+ fmt.Println("Pod:")
fmt.Println(pod.ID)
switch len(pod.Containers) {
case 0:
continue
case 1:
- fmt.Printf("Container:\n")
+ fmt.Println("Container:")
default:
- fmt.Printf("Containers:\n")
+ fmt.Println("Containers:")
}
for _, ctr := range pod.Containers {
fmt.Println(ctr)
@@ -154,7 +154,7 @@ func kube(cmd *cobra.Command, args []string) error {
fmt.Println()
}
for _, err := range pod.ContainerErrors {
- fmt.Fprintf(os.Stderr, err+"\n")
+ fmt.Fprintln(os.Stderr, err)
}
// Empty line for space for next block
fmt.Println()