From 568de5027b9c7057e6f71cca4a45ced9ca7a7db6 Mon Sep 17 00:00:00 2001 From: Martin Kosek Date: Mon, 16 Apr 2012 11:00:00 +0200 Subject: Fix dnsrecord_add interactive mode dnsrecord_add interactive mode did not work correctly when more than one DNS record part was entered as command line option. It asked for remaining options more than once. This patch fixes this situation and also adds tests to cover this use case properly. https://fedorahosted.org/freeipa/ticket/2641 --- ipalib/plugins/dns.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipalib/plugins/dns.py') diff --git a/ipalib/plugins/dns.py b/ipalib/plugins/dns.py index 88ee29ba..b0e65ab9 100644 --- a/ipalib/plugins/dns.py +++ b/ipalib/plugins/dns.py @@ -2046,7 +2046,7 @@ class dnsrecord(LDAPObject): continue if rrparam.name not in processed: - processed.append(rrparam) + processed.append(rrparam.name) yield rrparam api.register(dnsrecord) -- cgit