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 6bcd3b4 + bb7921b commit 0b03b0eCopy full SHA for 0b03b0e
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