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.
1 parent 6bcd3b4 commit bb7921bCopy full SHA for bb7921b
validate/validate.go
@@ -111,7 +111,7 @@ func (v *Validator) CheckAll() (msgs []string) {
111
func (v *Validator) CheckRoot() (msgs []string) {
112
logrus.Debugf("check root")
113
114
- if v.platform == "windows" && v.spec.Windows.HyperV != nil {
+ if v.platform == "windows" && v.spec.Windows != nil && v.spec.Windows.HyperV != nil {
115
if v.spec.Root != nil {
116
msgs = append(msgs, fmt.Sprintf("for Hyper-V containers, Root must not be set"))
117
return
0 commit comments