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

Create non-existing zones while push or print warning while preview (#1528)

* Create non-existing zones while push. While preview print a warning

Signed-off-by: Jan-Philipp Benecke <jan-philipp.benecke@jpbe.de>

* Ooops, remove testing lines

Signed-off-by: Jan-Philipp Benecke <jan-philipp.benecke@jpbe.de>

* Renaming flag

Signed-off-by: Jan-Philipp Benecke <jan-philipp.benecke@jpbe.de>

* Change flag description

Signed-off-by: Jan-Philipp Benecke <jan-philipp.benecke@jpbe.de>

* Reverse flag logic

Signed-off-by: Jan-Philipp Benecke <jan-philipp@bnck.me>
This commit is contained in:
Jan-Philipp Benecke
2022-06-08 20:53:16 +02:00
committed by GitHub
parent 1f641c0f58
commit c0450223c2
4 changed files with 36 additions and 2 deletions

View File

@@ -113,7 +113,7 @@ func (api *powerdnsProvider) ListZones() ([]string, error) {
return result, err
}
for _, zone := range myZones {
result = append(result, zone.Name)
result = append(result, strings.TrimSuffix(zone.Name, "."))
}
return result, nil
}