Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Fix nil linuxprofile #2621

Merged
merged 9 commits into from
Apr 10, 2018
7 changes: 5 additions & 2 deletions pkg/api/agentPoolOnlyApi/v20180331/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,12 @@ func (a *Properties) Validate() error {
}
}

if e := a.LinuxProfile.Validate(); e != nil {
return e
if a.LinuxProfile != nil {
if e := a.LinuxProfile.Validate(); e != nil {
return e
}
}

if e := validateVNET(a); e != nil {
return e
}
Expand Down