mirror of
https://github.com/containers/podman.git
synced 2025-10-19 04:03:23 +08:00
Correct VM existance check on WSL
Replaces GetHyperVisorVMs() with Exists() to better abstract the underlying use-case and slightly imrpove efficiency. Signed-off-by: Jason T. Greene <jason.greene@redhat.com>
This commit is contained in:
@ -74,9 +74,9 @@ func (a AppleHVStubber) CreateVM(opts define.CreateVMOpts, mc *vmconfigs.Machine
|
||||
return resizeDisk(mc, strongunits.GiB(mc.Resources.DiskSize))
|
||||
}
|
||||
|
||||
func (a AppleHVStubber) GetHyperVisorVMs() ([]string, error) {
|
||||
func (a AppleHVStubber) Exists(name string) (bool, error) {
|
||||
// not applicable for applehv
|
||||
return nil, nil
|
||||
return false, nil
|
||||
}
|
||||
|
||||
func (a AppleHVStubber) MountType() vmconfigs.VolumeMountType {
|
||||
|
Reference in New Issue
Block a user