summaryrefslogtreecommitdiffstats
path: root/ipalib
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2011-07-19 16:36:46 -0400
committerRob Crittenden <rcritten@redhat.com>2011-07-19 01:38:26 -0400
commiteda4d20264020a8f985356bb05e7662efc21dd82 (patch)
tree630a4381f3076a85ae50c282151dbe425097277c /ipalib
parent1b4aaf5756b490f5cacb89b4010d0d0803bfbf3d (diff)
downloadfreeipa-eda4d20264020a8f985356bb05e7662efc21dd82.tar.gz
freeipa-eda4d20264020a8f985356bb05e7662efc21dd82.tar.xz
freeipa-eda4d20264020a8f985356bb05e7662efc21dd82.zip
Fix regression when calculating external groups.
The members should be the current members of the entry, not the refreshed copy
Diffstat (limited to 'ipalib')
-rw-r--r--ipalib/plugins/netgroup.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipalib/plugins/netgroup.py b/ipalib/plugins/netgroup.py
index 97c58a502..b8afd3b97 100644
--- a/ipalib/plugins/netgroup.py
+++ b/ipalib/plugins/netgroup.py
@@ -236,7 +236,7 @@ class netgroup_add_member(LDAPAddMember):
# hosts that aren't stored in IPA, aka external hosts.
if 'memberhost' in failed and 'host' in failed['memberhost']:
(dn, entry_attrs_) = ldap.get_entry(dn, ['externalhost'])
- members = entry_attrs_.get('memberhost', [])
+ members = entry_attrs.get('memberhost', [])
external_hosts = entry_attrs_.get('externalhost', [])
failed_hosts = []
for host in failed['memberhost']['host']: