summaryrefslogtreecommitdiff
path: root/cmd/podman/machine/machine.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-12-26 13:26:07 +0100
committerGitHub <noreply@github.com>2021-12-26 13:26:07 +0100
commite06631d6c22f4d5b7a62f70ccdf623379a9d5fe7 (patch)
tree54fe3a08b58b9129f87e51cd1b8fcd938f582777 /cmd/podman/machine/machine.go
parent73a54ea54d0a1b4ccaa2a0e23c678e5b7c1d5c37 (diff)
parent803defbe509af1902a1fdc2ed7f41b49ebd241f6 (diff)
downloadpodman-e06631d6c22f4d5b7a62f70ccdf623379a9d5fe7.tar.gz
podman-e06631d6c22f4d5b7a62f70ccdf623379a9d5fe7.tar.bz2
podman-e06631d6c22f4d5b7a62f70ccdf623379a9d5fe7.zip
Merge pull request #12503 from n1hility/wsl-machine
Introduce Windows WSL implementation of podman machine
Diffstat (limited to 'cmd/podman/machine/machine.go')
-rw-r--r--cmd/podman/machine/machine.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/podman/machine/machine.go b/cmd/podman/machine/machine.go
index 8ff9055f0..22ffbbee7 100644
--- a/cmd/podman/machine/machine.go
+++ b/cmd/podman/machine/machine.go
@@ -1,4 +1,4 @@
-// +build amd64,!windows arm64,!windows
+// +build amd64 arm64
package machine
@@ -8,7 +8,6 @@ import (
"github.com/containers/podman/v3/cmd/podman/registry"
"github.com/containers/podman/v3/cmd/podman/validate"
"github.com/containers/podman/v3/pkg/machine"
- "github.com/containers/podman/v3/pkg/machine/qemu"
"github.com/spf13/cobra"
)
@@ -51,7 +50,8 @@ func autocompleteMachine(cmd *cobra.Command, args []string, toComplete string) (
func getMachines(toComplete string) ([]string, cobra.ShellCompDirective) {
suggestions := []string{}
- machines, err := qemu.List(machine.ListOptions{})
+ provider := getSystemDefaultProvider()
+ machines, err := provider.List(machine.ListOptions{})
if err != nil {
cobra.CompErrorln(err.Error())
return nil, cobra.ShellCompDirectiveNoFileComp