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:
Jason T. Greene
2024-02-13 21:37:56 -06:00
parent 07779e09f6
commit d23dd35dc1
6 changed files with 12 additions and 30 deletions

View File

@ -218,8 +218,8 @@ func waitForReady(readySocket *define.VMFile, pid int, stdErrBuffer *bytes.Buffe
return err
}
func (q *QEMUStubber) GetHyperVisorVMs() ([]string, error) {
return nil, nil
func (q *QEMUStubber) Exists(name string) (bool, error) {
return false, nil
}
func (q *QEMUStubber) VMType() define.VMType {