mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-07 01:15:44 +00:00
this pr has the basic plumbing that allows the e2e machine tests to run with the hyperv provider. it requires a special fcos image right now because gvforwarder was not in the upstream fcos images for hyperv. changed the way "provider" is set; moved GetProvider functions to pkg/machine/provider. provider is now set at the machine level. Signed-off-by: Brent Baude <bbaude@redhat.com>
16 lines
308 B
Go
16 lines
308 B
Go
//go:build (amd64 && !remote) || (arm64 && !remote)
|
|
// +build amd64,!remote arm64,!remote
|
|
|
|
package system
|
|
|
|
import (
|
|
p "github.com/containers/podman/v4/pkg/machine/provider"
|
|
)
|
|
|
|
func resetMachine() error {
|
|
provider, err := p.Get()
|
|
if err != nil {
|
|
return err
|
|
}
|
|
return provider.RemoveAndCleanMachines()
|
|
}
|