diff --git a/cmd/podman/machine/list.go b/cmd/podman/machine/list.go index bddcf49c2a..4c53d9194f 100644 --- a/cmd/podman/machine/list.go +++ b/cmd/podman/machine/list.go @@ -62,7 +62,7 @@ func init() { _ = lsCmd.RegisterFlagCompletionFunc(formatFlagName, common.AutocompleteFormat(&entities.ListReporter{})) flags.BoolVarP(&listFlag.noHeading, "noheading", "n", false, "Do not print headers") flags.BoolVarP(&listFlag.quiet, "quiet", "q", false, "Show only machine names") - flags.BoolVar(&listFlag.allProviders, "all-providers", false, "Show machines from all providers") + flags.BoolVar(&listFlag.allProviders, "all-providers", true, "Show machines from all providers") } func list(cmd *cobra.Command, args []string) error { diff --git a/docs/source/markdown/podman-machine-list.1.md.in b/docs/source/markdown/podman-machine-list.1.md.in index 60ebb12294..491ec41fc4 100644 --- a/docs/source/markdown/podman-machine-list.1.md.in +++ b/docs/source/markdown/podman-machine-list.1.md.in @@ -26,9 +26,10 @@ environment variable while the machines are running can lead to unexpected behav ## OPTIONS -#### **--all-providers** +#### **--all-providers**=**true|false** -Show machines from all providers +Show machines from all providers. +The default is **true**. #### **--format**=*format* diff --git a/test/system/015-help.bats b/test/system/015-help.bats index 75fed8fb56..058498b80a 100644 --- a/test/system/015-help.bats +++ b/test/system/015-help.bats @@ -210,7 +210,13 @@ function check_help() { is "${lines[0]}" "Manage pods, containers and images" \ "podman $helpopt: first line of output" done +} +# bats test_tags=ci:parallel +@test "podman machine list --help tests" { + skip_if_remote + run_podman machine list --help + is "$output" ".*--all-providers Show machines from all providers (default true)" "All providers default to true" } # vim: filetype=sh