Skip to content

Commit

Permalink
bugfix: missing pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosOVillanueva committed Oct 15, 2020
1 parent 8143590 commit 6f8018d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virtualserver/avi_etl.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ func (o Avi) SetPoolRef(data *Data, source *models.VirtualService) (r *string, e
////////////////////////////////////////////////////////////////////////////
// Exit if more than one pool is defined. Pools are handled by poolgroup.
////////////////////////////////////////////////////////////////////////////
if len(data.Pools) > 1 && source.PoolRef != nil {
if len(data.Pools) > 1 && source != nil && source.PoolRef != nil {
for k := range data.Pools {
data.Pools[k].Name = ""
data.Pools[k].SourceUUID = ""
Expand Down

0 comments on commit 6f8018d

Please sign in to comment.