summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins
diff options
context:
space:
mode:
authorMartin Kosek <mkosek@redhat.com>2011-07-19 10:45:25 +0200
committerMartin Kosek <mkosek@redhat.com>2011-07-19 15:23:53 +0200
commit07e6353373b4fa2e85942119462d2999eaa0dd39 (patch)
treef31343d3dd8fbe9ebec42aec8b9c7524af5043b3 /ipalib/plugins
parentc1f5dadc4e9c5ed0c9c1a132c4fe5c66b0244882 (diff)
downloadfreeipa-07e6353373b4fa2e85942119462d2999eaa0dd39.zip
freeipa-07e6353373b4fa2e85942119462d2999eaa0dd39.tar.gz
freeipa-07e6353373b4fa2e85942119462d2999eaa0dd39.tar.xz
Fix sudorule-remove-user
Removed sudorule "External User" is displayed in the output when "--all" switch is used. https://fedorahosted.org/freeipa/ticket/1489
Diffstat (limited to 'ipalib/plugins')
-rw-r--r--ipalib/plugins/sudorule.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipalib/plugins/sudorule.py b/ipalib/plugins/sudorule.py
index 33c8fdb..8b415e7 100644
--- a/ipalib/plugins/sudorule.py
+++ b/ipalib/plugins/sudorule.py
@@ -362,8 +362,8 @@ class sudorule_remove_user(LDAPRemoveMember):
# Run through the user failures and gracefully remove any defined as
# as an externaluser.
if 'memberuser' in failed and 'user' in failed['memberuser']:
- (dn, entry_attrs) = ldap.get_entry(dn, ['externaluser'])
- external_users = entry_attrs.get('externaluser', [])
+ (dn, entry_attrs_) = ldap.get_entry(dn, ['externaluser'])
+ external_users = entry_attrs_.get('externaluser', [])
failed_users = []
completed_external = 0
for user in failed['memberuser']['user']: