Limit amount of records for infoblox healthcheck

This commit is contained in:
Sebastiaan van Steenis
2017-10-25 17:23:19 +02:00
committed by Sheng Yang
parent bb9f5945bb
commit 3ccfbc3fd1
+5 -1
View File
@@ -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
}