diff options
author | Rob Crittenden <rcritten@redhat.com> | 2011-07-19 16:36:46 -0400 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2011-07-19 01:38:26 -0400 |
commit | eda4d20264020a8f985356bb05e7662efc21dd82 (patch) | |
tree | 630a4381f3076a85ae50c282151dbe425097277c /ipalib | |
parent | 1b4aaf5756b490f5cacb89b4010d0d0803bfbf3d (diff) | |
download | freeipa-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.py | 2 |
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']: |