Skip to content

Commit

Permalink
applehv - fix vm lookup
Browse files Browse the repository at this point in the history
small correction to properly lookup a applehv vm on disk.

Fixes: #21090

[NO NEW TESTS NEEDED]

Signed-off-by: Brent Baude <[email protected]>
  • Loading branch information
Brent Baude committed Jan 1, 2024
1 parent 7dc7cbf commit 55b08d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/machine/applehv/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ func (v AppleHVVirtualization) IsValidVMName(name string) (bool, error) {
if err != nil {
return false, err
}
if _, err := loadMacMachineFromJSON(configDir); err != nil {
fqName := filepath.Join(configDir, fmt.Sprintf("%s.json", name))
if _, err := loadMacMachineFromJSON(fqName); err != nil {
return false, err
}
return true, nil
Expand Down

0 comments on commit 55b08d3

Please sign in to comment.