spiegel_podman/cmd/podman/system/reset_machine.go
Brent Baude 919dce1315 Plumbing to run machine tests with hyperv
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>
2023-09-14 15:57:35 -05:00

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()
}