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:
committed by
GitHub
parent
1f641c0f58
commit
c0450223c2
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user