From c2bd6f365d2b65082f72bd9eb104e79e8c507fe3 Mon Sep 17 00:00:00 2001 From: Jan Cholasta Date: Thu, 31 Oct 2013 16:54:21 +0000 Subject: Convert remaining frontend code to LDAPEntry API. --- ipalib/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipalib/util.py') diff --git a/ipalib/util.py b/ipalib/util.py index e1407748..1701fbdd 100644 --- a/ipalib/util.py +++ b/ipalib/util.py @@ -332,7 +332,7 @@ def convert_sshpubkey_post(ldap, dn, entry_attrs): pubkeys = entry_attrs['ipasshpubkey'] else: old_entry_attrs = ldap.get_entry(dn, ['ipasshpubkey']) - pubkeys = old_entry_attrs[1].get('ipasshpubkey') + pubkeys = old_entry_attrs.get('ipasshpubkey') if not pubkeys: return -- cgit