From 74a538416999d84f7d3bd6cca4ab3655481ef848 Mon Sep 17 00:00:00 2001 From: Pavel Zuna Date: Thu, 10 Dec 2009 16:39:24 +0100 Subject: Add --all to LDAPCreate and make LDAP commands always display default attributes. --- ipalib/plugins/host.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipalib/plugins/host.py') diff --git a/ipalib/plugins/host.py b/ipalib/plugins/host.py index 6c76f518..15870b0a 100644 --- a/ipalib/plugins/host.py +++ b/ipalib/plugins/host.py @@ -142,7 +142,7 @@ class host_add(LDAPCreate): msg_summary = _('Added host "%(value)s"') - def pre_callback(self, ldap, dn, entry_attrs, *keys, **options): + def pre_callback(self, ldap, dn, entry_attrs, attrs_list, *keys, **options): entry_attrs['cn'] = keys[-1] entry_attrs['serverhostname'] = keys[-1].split('.', 1)[0] # FIXME: do DNS lookup to ensure host exists -- cgit