1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

Create zone before use (#1642)

* preview/push: ensure zones exists before querying them

Signed-off-by: Jakob Ackermann <das7pad@outlook.com>

* HETZNER: reset zone cache when creating a new zone

Signed-off-by: Jakob Ackermann <das7pad@outlook.com>

* ROUTE53: reset zone cache when creating a new zone

Signed-off-by: Jakob Ackermann <das7pad@outlook.com>

Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
This commit is contained in:
Jakob Ackermann
2022-08-01 19:44:17 +01:00
committed by GitHub
parent bd1a7f26dc
commit a00572af4a
4 changed files with 49 additions and 11 deletions

View File

@@ -73,6 +73,8 @@ func (api *hetznerProvider) EnsureDomainExists(domain string) error {
}
}
// reset zone cache
api.zones = nil
return api.createZone(domain)
}