https://fedorahosted.org/freeipa/ticket/1632
Honza -- Jan Cholasta
>From f018cdb47be57929430aef3b3dea0e2c64b9c5f8 Mon Sep 17 00:00:00 2001 From: Jan Cholasta <[email protected]> Date: Mon, 15 Aug 2011 15:39:54 +0200 Subject: [PATCH] Fix internal error when removing the last PTR record from a DNS record entry. ticket 1632 --- ipalib/plugins/dns.py | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ipalib/plugins/dns.py b/ipalib/plugins/dns.py index 105678b..1eb4148 100644 --- a/ipalib/plugins/dns.py +++ b/ipalib/plugins/dns.py @@ -632,10 +632,11 @@ class dnsrecord(LDAPObject): error=unicode(_('Reverse zone %s requires exactly %d IP address components, %d given') % (zone_name, zone_len, ip_addr_comp_count))) - for ptr in options['ptrrecord']: - if not ptr.endswith('.'): - raise errors.ValidationError(name='ptr-rec', - error=unicode(_('PTR record \'%s\' is not fully qualified (check traling \'.\')') % ptr)) + if options['ptrrecord'] is not None: + for ptr in options['ptrrecord']: + if not ptr.endswith('.'): + raise errors.ValidationError(name='ptr-rec', + error=unicode(_('PTR record \'%s\' is not fully qualified (check traling \'.\')') % ptr)) return dn -- 1.7.6
_______________________________________________ Freeipa-devel mailing list [email protected] https://www.redhat.com/mailman/listinfo/freeipa-devel
