From 3dd4b36e1a3262f923a5f07f9d287318a68532a8 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Fri, 18 Jan 2013 09:24:35 -0500 Subject: Replace setValue by keyword arguments when creating entries Part of the work for: https://fedorahosted.org/freeipa/ticket/2660 --- ipaserver/install/ldapupdate.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'ipaserver/install/ldapupdate.py') diff --git a/ipaserver/install/ldapupdate.py b/ipaserver/install/ldapupdate.py index f7f6c059..5de43749 100644 --- a/ipaserver/install/ldapupdate.py +++ b/ipaserver/install/ldapupdate.py @@ -422,12 +422,13 @@ class LDAPUpdate: cn = "indextask_%s_%s_%s" % (attribute, cn_uuid.time, cn_uuid.clock_seq) dn = DN(('cn', cn), ('cn', 'index'), ('cn', 'tasks'), ('cn', 'config')) - e = self.conn.make_entry(dn) - - e.setValues('objectClass', ['top', 'extensibleObject']) - e.setValue('cn', cn) - e.setValue('nsInstance', 'userRoot') - e.setValues('nsIndexAttribute', attribute) + e = self.conn.make_entry( + dn, + objectClass=['top', 'extensibleObject'], + cn=[cn], + nsInstance=['userRoot'], + nsIndexAttribute=[attribute], + ) self.info("Creating task to index attribute: %s", attribute) self.debug("Task id: %s", dn) -- cgit