diff options
author | openshift-ci[bot] <75433959+openshift-ci[bot]@users.noreply.github.com> | 2022-06-27 12:30:11 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-27 12:30:11 +0000 |
commit | cc86315455bb9b4fed6318f9e3c4222ba9215e03 (patch) | |
tree | 3dc5751ec84eea9417349695727ce75cd2195654 /cmd/podman/machine | |
parent | 157a966ae802af221aed278054cffcb68790c036 (diff) | |
parent | 491857a880e846df02b98030ac166cce6a47de5b (diff) | |
download | podman-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/podman/machine')
-rw-r--r-- | cmd/podman/machine/list.go | 2 |
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() |