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

Commit

Permalink
assign empty when nil linuxprofile
Browse files Browse the repository at this point in the history
  • Loading branch information
zqingqing1 committed Apr 9, 2018
1 parent abd647f commit b7e1eee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/api/convertertoagentpoolonlyapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,8 @@ func convertV20180331AgentPoolOnlyProperties(obj *v20180331.Properties) *Propert
}
if obj.LinuxProfile != nil {
properties.LinuxProfile = convertV20180331AgentPoolOnlyLinuxProfile(obj.LinuxProfile)
} else {
properties.LinuxProfile = &LinuxProfile{}
}
if obj.WindowsProfile != nil {
properties.WindowsProfile = convertV20180331AgentPoolOnlyWindowsProfile(obj.WindowsProfile)
Expand Down

0 comments on commit b7e1eee

Please sign in to comment.