From 3ccfbc3fd17674ece369b3e2eece880ecfe02f9a Mon Sep 17 00:00:00 2001 From: Sebastiaan van Steenis Date: Wed, 25 Oct 2017 17:23:19 +0200 Subject: [PATCH] Limit amount of records for infoblox healthcheck --- providers/infoblox/infoblox.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/providers/infoblox/infoblox.go b/providers/infoblox/infoblox.go index bcbfe28..69eaf73 100644 --- a/providers/infoblox/infoblox.go +++ b/providers/infoblox/infoblox.go @@ -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 }