Merge "Fix DNS secondary zone creation"

This commit is contained in:
Zuul 2025-03-14 17:02:26 +00:00 committed by Gerrit Code Review
commit a5013d423d
2 changed files with 9 additions and 0 deletions

View File

@ -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):

View File

@ -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.