summaryrefslogtreecommitdiff
path: root/cmd/podman/pods/ps.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-04-28 14:25:43 -0400
committerGitHub <noreply@github.com>2022-04-28 14:25:43 -0400
commit2e9f792e378491acc3c04ba389ec7cf15bef471e (patch)
treec7c864d61471b2b3559132cb870b9efdfce3a9b3 /cmd/podman/pods/ps.go
parentb2725024f859193eef10d33837258b206aab8245 (diff)
parent6b7fd318bd541033ab36fb5c3b3d0bfe79fc4f8c (diff)
downloadpodman-2e9f792e378491acc3c04ba389ec7cf15bef471e.tar.gz
podman-2e9f792e378491acc3c04ba389ec7cf15bef471e.tar.bz2
podman-2e9f792e378491acc3c04ba389ec7cf15bef471e.zip
Merge pull request #14053 from Luap99/shell-format
shell completion --format: work with nil structs
Diffstat (limited to 'cmd/podman/pods/ps.go')
-rw-r--r--cmd/podman/pods/ps.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/pods/ps.go b/cmd/podman/pods/ps.go
index 4a049541a..1275e65dc 100644
--- a/cmd/podman/pods/ps.go
+++ b/cmd/podman/pods/ps.go
@@ -57,7 +57,7 @@ func init() {
formatFlagName := "format"
flags.StringVar(&psInput.Format, formatFlagName, "", "Pretty-print pods to JSON or using a Go template")
- _ = psCmd.RegisterFlagCompletionFunc(formatFlagName, common.AutocompleteFormat(ListPodReporter{ListPodsReport: &entities.ListPodsReport{}}))
+ _ = psCmd.RegisterFlagCompletionFunc(formatFlagName, common.AutocompleteFormat(&ListPodReporter{}))
flags.Bool("noheading", false, "Do not print headers")
flags.BoolVar(&psInput.Namespace, "namespace", false, "Display namespace information of the pod")