We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2e97e75 + 611c294 commit dd8968bCopy full SHA for dd8968b
pkg/store/instance.go
@@ -65,6 +65,8 @@ func Inspect(instName string) (*Instance, error) {
65
if err != nil {
66
return nil, err
67
}
68
+ // Make sure inst.Dir is set, even when YAML validation fails
69
+ inst.Dir = instDir
70
yamlPath := filepath.Join(instDir, filenames.LimaYAML)
71
y, err := LoadYAMLByFilePath(yamlPath)
72
@@ -74,7 +76,6 @@ func Inspect(instName string) (*Instance, error) {
74
76
inst.Errors = append(inst.Errors, err)
75
77
return inst, nil
78
- inst.Dir = instDir
79
inst.Arch = *y.Arch
80
inst.CPUType = y.CPUType[*y.Arch]
81
0 commit comments