summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authoropenshift-ci[bot] <75433959+openshift-ci[bot]@users.noreply.github.com>2022-06-27 12:30:11 +0000
committerGitHub <noreply@github.com>2022-06-27 12:30:11 +0000
commitcc86315455bb9b4fed6318f9e3c4222ba9215e03 (patch)
tree3dc5751ec84eea9417349695727ce75cd2195654 /cmd
parent157a966ae802af221aed278054cffcb68790c036 (diff)
parent491857a880e846df02b98030ac166cce6a47de5b (diff)
downloadpodman-cc86315455bb9b4fed6318f9e3c4222ba9215e03.tar.gz
podman-cc86315455bb9b4fed6318f9e3c4222ba9215e03.tar.bz2
podman-cc86315455bb9b4fed6318f9e3c4222ba9215e03.zip
Merge pull request #14695 from boaz0/closes_14682
Fix machine list: --format implies --noheading
Diffstat (limited to 'cmd')
-rw-r--r--cmd/podman/machine/list.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/machine/list.go b/cmd/podman/machine/list.go
index bb14d4a67..1ffb8690c 100644
--- a/cmd/podman/machine/list.go
+++ b/cmd/podman/machine/list.go
@@ -138,7 +138,7 @@ func outputTemplate(cmd *cobra.Command, responses []*ListReporter) error {
switch {
case cmd.Flags().Changed("format"):
row = cmd.Flag("format").Value.String()
- listFlag.noHeading = !report.HasTable(row)
+ printHeader = report.HasTable(row)
row = report.NormalizeFormat(row)
default:
row = cmd.Flag("format").Value.String()