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/plugins/realmdomains.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ipalib/plugins/realmdomains.py') diff --git a/ipalib/plugins/realmdomains.py b/ipalib/plugins/realmdomains.py index cff193f2..1928e480 100644 --- a/ipalib/plugins/realmdomains.py +++ b/ipalib/plugins/realmdomains.py @@ -120,7 +120,7 @@ class realmdomains_mod(LDAPUpdate): # If --add-domain or --del-domain options were provided, read # the curent list from LDAP, modify it, and write the changes back - domains = ldap.get_entry(dn)[1]['associateddomain'] + domains = ldap.get_entry(dn)['associateddomain'] if add_domain: if not force and not has_soa_or_ns_record(add_domain): @@ -144,9 +144,9 @@ class realmdomains_mod(LDAPUpdate): dn = self.obj.get_dn(*keys, **options) ldap = self.obj.backend - domains_old = set(ldap.get_entry(dn)[1]['associateddomain']) + domains_old = set(ldap.get_entry(dn)['associateddomain']) result = super(realmdomains_mod, self).execute(*keys, **options) - domains_new = set(ldap.get_entry(dn)[1]['associateddomain']) + domains_new = set(ldap.get_entry(dn)['associateddomain']) domains_added = domains_new - domains_old domains_deleted = domains_old - domains_new -- cgit