summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/host.py
diff options
context:
space:
mode:
authorPavel Zuna <pzuna@redhat.com>2009-12-10 16:39:24 +0100
committerRob Crittenden <rcritten@redhat.com>2010-01-11 13:28:05 -0500
commit74a538416999d84f7d3bd6cca4ab3655481ef848 (patch)
treee72e11e7092996946a439b6fd95cedf61e2fe2ba /ipalib/plugins/host.py
parentb8016807ebb95b97f0a4631574be484371f4dcd0 (diff)
downloadfreeipa-74a538416999d84f7d3bd6cca4ab3655481ef848.tar.gz
freeipa-74a538416999d84f7d3bd6cca4ab3655481ef848.tar.xz
freeipa-74a538416999d84f7d3bd6cca4ab3655481ef848.zip
Add --all to LDAPCreate and make LDAP commands always display default attributes.
Diffstat (limited to 'ipalib/plugins/host.py')
-rw-r--r--ipalib/plugins/host.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipalib/plugins/host.py b/ipalib/plugins/host.py
index 6c76f518e..15870b0a6 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