diff options
Diffstat (limited to 'ipalib/plugins/realmdomains.py')
-rw-r--r-- | ipalib/plugins/realmdomains.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ipalib/plugins/realmdomains.py b/ipalib/plugins/realmdomains.py index cff193f20..1928e4805 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 |