diff --git a/docs/_includes/matrix.html b/docs/_includes/matrix.html index 6114c3706..ec47e0085 100644 --- a/docs/_includes/matrix.html +++ b/docs/_includes/matrix.html @@ -443,7 +443,9 @@ - + + + diff --git a/providers/ovh/ovhProvider.go b/providers/ovh/ovhProvider.go index fd7676019..8885c62ee 100644 --- a/providers/ovh/ovhProvider.go +++ b/providers/ovh/ovhProvider.go @@ -39,7 +39,11 @@ func newOVH(m map[string]string, metadata json.RawMessage) (*ovhProvider, error) return nil, err } - return &ovhProvider{client: c}, nil + ovh := &ovhProvider{client: c} + if err := ovh.fetchZones(); err != nil { + return nil, err + } + return ovh, nil } func newDsp(conf map[string]string, metadata json.RawMessage) (providers.DNSServiceProvider, error) { @@ -56,9 +60,6 @@ func init() { } func (c *ovhProvider) GetNameservers(domain string) ([]*models.Nameserver, error) { - if err := c.fetchZones(); err != nil { - return nil, err - } _, ok := c.zones[domain] if !ok { return nil, errors.Errorf("%s not listed in zones for ovh account", domain)