Add expires condition
Adding expires condition for when API does not return a expires item
@@ -445,6 +445,15 @@ class GoDaddyDNSDriver(DNSDriver):
return zones
def _to_zone(self, item):
+ if "expires" not in item:
+ zone = Zone(
+ id=item["domainId"],
+ domain=item["domain"],
+ type="master",
+ ttl=None,
+ driver=self,
+ )
+ if "expires" in item:
extra = {"expires": item["expires"]}
zone = Zone(
id=item["domainId"],
