From f9bc9a85bd63bc2292f811b0dfe005f80d048746 Mon Sep 17 00:00:00 2001 From: Brent Baude Date: Tue, 13 Feb 2024 14:59:07 -0600 Subject: [PATCH] Replace panic with no-op Instead of panic'ing for provider.MountType(), we return the "Unknown" voluem type [NO NEW TESTS NEEDED] Signed-off-by: Brent Baude --- pkg/machine/wsl/stubber.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkg/machine/wsl/stubber.go b/pkg/machine/wsl/stubber.go index a3693d9c99..39a7d215d0 100644 --- a/pkg/machine/wsl/stubber.go +++ b/pkg/machine/wsl/stubber.go @@ -107,8 +107,7 @@ func (w WSLStubber) GetHyperVisorVMs() ([]string, error) { } func (w WSLStubber) MountType() vmconfigs.VolumeMountType { - //TODO implement me - panic("implement me") + return vmconfigs.Unknown } func (w WSLStubber) MountVolumesToVM(mc *vmconfigs.MachineConfig, quiet bool) error { @@ -133,7 +132,6 @@ func (w WSLStubber) RemoveAndCleanMachines(_ *define.MachineDirs) error { return nil } - func (w WSLStubber) SetProviderAttrs(mc *vmconfigs.MachineConfig, opts define.SetOptions) error { mc.Lock() defer mc.Unlock()