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:
@@ -73,6 +73,8 @@ func (api *hetznerProvider) EnsureDomainExists(domain string) error {
|
||||
}
|
||||
}
|
||||
|
||||
// reset zone cache
|
||||
api.zones = nil
|
||||
return api.createZone(domain)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user