summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins
diff options
context:
space:
mode:
authorAlexander Bokovoy <abokovoy@redhat.com>2011-08-15 18:35:32 +0300
committerRob Crittenden <rcritten@redhat.com>2011-08-15 00:33:55 -0400
commitbc8ea3ae4e21bc38648a093615f0a4872915a374 (patch)
tree088f7f7ca6f77a1372352e1dded5ca531a0714d1 /ipalib/plugins
parent0fcc752f86f1cc0e0501b7c8d7b4186fbe160b4a (diff)
downloadfreeipa-bc8ea3ae4e21bc38648a093615f0a4872915a374.tar.gz
freeipa-bc8ea3ae4e21bc38648a093615f0a4872915a374.tar.xz
freeipa-bc8ea3ae4e21bc38648a093615f0a4872915a374.zip
Pass empty options as empty arrays for supported dns record types. https://fedorahosted.org/freeipa/ticket/1632
Diffstat (limited to 'ipalib/plugins')
-rw-r--r--ipalib/plugins/dns.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ipalib/plugins/dns.py b/ipalib/plugins/dns.py
index 105678b23..e967c5c03 100644
--- a/ipalib/plugins/dns.py
+++ b/ipalib/plugins/dns.py
@@ -886,6 +886,8 @@ class dnsrecord_mod(dnsrecord_mod_record):
def pre_callback(self, ldap, dn, entry_attrs, *keys, **options):
for rtype in options:
rtype_cb = '_%s_pre_callback' % rtype
+ if options[rtype] is None and rtype in _record_attributes:
+ options[rtype] = []
if hasattr(self.obj, rtype_cb):
dn = getattr(self.obj, rtype_cb)(ldap, dn, entry_attrs, *keys, **options)