diff --git a/openstack/dns/v2/_proxy.py b/openstack/dns/v2/_proxy.py index 8e77b857a..b4978699e 100644 --- a/openstack/dns/v2/_proxy.py +++ b/openstack/dns/v2/_proxy.py @@ -70,6 +70,9 @@ class Proxy(proxy.Proxy): :returns: The results of zone creation. :rtype: :class:`~openstack.dns.v2.zone.Zone` """ + if attrs.get('type') == "SECONDARY": + attrs.pop('email', None) + attrs.pop('ttl', None) return self._create(_zone.Zone, prepend_key=False, **attrs) def get_zone(self, zone): diff --git a/releasenotes/notes/fix-dns-secondary-zones-creation-78ed84fa7d514998.yaml b/releasenotes/notes/fix-dns-secondary-zones-creation-78ed84fa7d514998.yaml new file mode 100644 index 000000000..90b9cd857 --- /dev/null +++ b/releasenotes/notes/fix-dns-secondary-zones-creation-78ed84fa7d514998.yaml @@ -0,0 +1,6 @@ +--- +fixes: + - | + Fixed DNS secondary zone creation. Now secondary zones do not + require email not ttl, as both get overriden by the following + zone transfer.