summaryrefslogtreecommitdiff
path: root/cmd/podman/pods/inspect.go
diff options
context:
space:
mode:
authorAditya Rajan <arajan@redhat.com>2021-09-09 15:39:13 +0530
committerAditya Rajan <arajan@redhat.com>2021-09-09 16:37:24 +0530
commit6888b061d06a699772921aaf6c57f4bd6c95d1c6 (patch)
tree8ac85cb3d13bdde70aa2640dfd7b74eb0227cb60 /cmd/podman/pods/inspect.go
parent2b41c4d667d3bc830e4fef629c6fc24d5cf8ae1e (diff)
downloadpodman-6888b061d06a699772921aaf6c57f4bd6c95d1c6.tar.gz
podman-6888b061d06a699772921aaf6c57f4bd6c95d1c6.tar.bz2
podman-6888b061d06a699772921aaf6c57f4bd6c95d1c6.zip
inspect: printTmpl must Flush writer
Flush should be called after the last call to Write to ensure that any data buffered in the Writer is written to output. Any incomplete escape sequence at the end is considered complete for formatting purposes. Signed-off-by: Aditya Rajan <arajan@redhat.com>
Diffstat (limited to 'cmd/podman/pods/inspect.go')
-rw-r--r--cmd/podman/pods/inspect.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd/podman/pods/inspect.go b/cmd/podman/pods/inspect.go
index 4bb88f48a..96eaec3b9 100644
--- a/cmd/podman/pods/inspect.go
+++ b/cmd/podman/pods/inspect.go
@@ -80,5 +80,7 @@ func inspect(cmd *cobra.Command, args []string) error {
if err != nil {
return err
}
- return t.Execute(w, *responses)
+ err = t.Execute(w, *responses)
+ w.Flush()
+ return err
}