diff options
author | Jr Aquino <jr.aquino@citrix.com> | 2011-06-13 11:35:45 -0700 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2011-06-14 00:04:08 -0400 |
commit | 6e5885d109a6aa303b62706bd571dc076491fab4 (patch) | |
tree | c18e1072e7d72bcb77849257448aacb3473adfc5 /ipalib | |
parent | bee4e6a85a46a93eefcdda04c77fe11c30fab29e (diff) | |
download | freeipa-6e5885d109a6aa303b62706bd571dc076491fab4.tar.gz freeipa-6e5885d109a6aa303b62706bd571dc076491fab4.tar.xz freeipa-6e5885d109a6aa303b62706bd571dc076491fab4.zip |
Display remaining external hosts when removing from sudorule
https://fedorahosted.org/freeipa/ticket/1269
https://fedorahosted.org/freeipa/ticket/1270
Diffstat (limited to 'ipalib')
-rw-r--r-- | ipalib/plugins/sudorule.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ipalib/plugins/sudorule.py b/ipalib/plugins/sudorule.py index 4990e7377..01d871490 100644 --- a/ipalib/plugins/sudorule.py +++ b/ipalib/plugins/sudorule.py @@ -426,8 +426,8 @@ class sudorule_remove_host(LDAPRemoveMember): # Run through the host failures and gracefully remove any defined as # as an externalhost. if 'memberhost' in failed and 'host' in failed['memberhost']: - (dn, entry_attrs) = ldap.get_entry(dn, ['externalhost']) - external_hosts = entry_attrs.get('externalhost', []) + (dn, entry_attrs_) = ldap.get_entry(dn, ['externalhost']) + external_hosts = entry_attrs_.get('externalhost', []) failed_hosts = [] completed_external = 0 for host in failed['memberhost']['host']: |