diff options
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']: |