summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2011-02-12 15:36:19 -0500
committerAdam Young <ayoung@redhat.com>2011-02-14 10:21:27 -0500
commit284dd3204003ef6fb351d7a0efea42638e3f8cb7 (patch)
treea6690bba31bea4ba14a3615cae540e2d2310f140
parent76f2d2eac2188fc7929bb07ab6bba7af745e8998 (diff)
downloadfreeipa-284dd3204003ef6fb351d7a0efea42638e3f8cb7.tar.gz
freeipa-284dd3204003ef6fb351d7a0efea42638e3f8cb7.tar.xz
freeipa-284dd3204003ef6fb351d7a0efea42638e3f8cb7.zip
Fix checking for arguments in DNS plugins
https://fedorahosted.org/freeipa/ticket/956
-rw-r--r--ipalib/plugins/dns.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipalib/plugins/dns.py b/ipalib/plugins/dns.py
index ed117e27..d4d06166 100644
--- a/ipalib/plugins/dns.py
+++ b/ipalib/plugins/dns.py
@@ -146,7 +146,7 @@ _record_validators = {
def has_cli_options(entry, no_option_msg):
entry = dict((t, entry.get(t, [])) for t in _record_attributes)
numattr = reduce(lambda x,y: x+y,
- map(lambda x: len(x), entry.values()))
+ map(lambda x: len(x), [ v for v in entry.values() if v is not None ]))
if numattr == 0:
raise errors.OptionError(no_option_msg)
return entry