https://fedorahosted.org/freeipa/ticket/5200

--
Martin^3 Babinsky
From 0dd65107ce006976a28ed98c99cb98e55b7bd75e Mon Sep 17 00:00:00 2001
From: Martin Babinsky <mbabi...@redhat.com>
Date: Mon, 12 Oct 2015 16:24:50 +0200
Subject: [PATCH] perform an unlimited search for reverse zones when adding DNS
 records

https://fedorahosted.org/freeipa/ticket/5200
---
 ipalib/plugins/dns.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ipalib/plugins/dns.py b/ipalib/plugins/dns.py
index 84086f4c77d02922f237937d58031cc42d55410e..c36345faecfb9db7abced1c6bd72ddcf93473a74 100644
--- a/ipalib/plugins/dns.py
+++ b/ipalib/plugins/dns.py
@@ -537,7 +537,8 @@ def get_reverse_zone(ipaddr, prefixlen=None):
     if prefixlen is None:
         revzone = None
 
-        result = api.Command['dnszone_find']()['result']
+        result = api.Command['dnszone_find'](sizelimit=0)['result']
+
         for zone in result:
             zonename = zone['idnsname'][0]
             if (revdns.is_subdomain(zonename.make_absolute()) and
-- 
2.4.3

-- 
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code

Reply via email to