mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-12-09 13:46:07 +08:00
Merge 28710b1f72 into 0ae4acc3e4
This commit is contained in:
commit
4aaa09ac5f
1 changed files with 4 additions and 1 deletions
|
|
@ -83,7 +83,10 @@ func init() {
|
|||
// EnsureZoneExists creates a zone if it does not exist
|
||||
func (c *exoscaleProvider) EnsureZoneExists(domain string, metadata map[string]string) error {
|
||||
_, err := c.findDomainByName(domain)
|
||||
|
||||
if err == ErrDomainNotFound {
|
||||
d := &egoscale.DNSDomain{UnicodeName: &domain}
|
||||
_, err = c.client.CreateDNSDomain(context.Background(), c.apiZone, d)
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue