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 <bbaude@redhat.com>
This commit is contained in:
Brent Baude
2024-02-13 14:59:07 -06:00
parent c88c689584
commit f9bc9a85bd

View File

@ -107,8 +107,7 @@ func (w WSLStubber) GetHyperVisorVMs() ([]string, error) {
} }
func (w WSLStubber) MountType() vmconfigs.VolumeMountType { func (w WSLStubber) MountType() vmconfigs.VolumeMountType {
//TODO implement me return vmconfigs.Unknown
panic("implement me")
} }
func (w WSLStubber) MountVolumesToVM(mc *vmconfigs.MachineConfig, quiet bool) error { func (w WSLStubber) MountVolumesToVM(mc *vmconfigs.MachineConfig, quiet bool) error {
@ -133,7 +132,6 @@ func (w WSLStubber) RemoveAndCleanMachines(_ *define.MachineDirs) error {
return nil return nil
} }
func (w WSLStubber) SetProviderAttrs(mc *vmconfigs.MachineConfig, opts define.SetOptions) error { func (w WSLStubber) SetProviderAttrs(mc *vmconfigs.MachineConfig, opts define.SetOptions) error {
mc.Lock() mc.Lock()
defer mc.Unlock() defer mc.Unlock()