mirror of
https://github.com/containers/podman.git
synced 2025-07-02 00:30:00 +08:00
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:
@ -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()
|
||||
|
Reference in New Issue
Block a user