Skip to content

Commit

Permalink
Limit amount of records for infoblox healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
superseb authored and yasker committed Oct 31, 2017
1 parent bb9f594 commit 3ccfbc3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion providers/infoblox/infoblox.go
Expand Up @@ -116,7 +116,11 @@ func (*InfobloxProvider) GetName() string {
}

func (d *InfobloxProvider) HealthCheck() error {
_, err := d.client.RecordHost().All(nil)
maxResults := 1
opts := &api.Options{
MaxResults: &maxResults,
}
_, err := d.client.RecordHost().All(opts)
return err
}

Expand Down

0 comments on commit 3ccfbc3

Please sign in to comment.