summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins
diff options
context:
space:
mode:
authorJr Aquino <jr.aquino@citrix.com>2011-06-16 12:18:16 -0700
committerRob Crittenden <rcritten@redhat.com>2011-06-16 19:22:15 -0400
commited7a3e005a052845b7302744c0f6c16f7cdfd511 (patch)
treee0fe09b42a0261e1934f17c9f996fcf9a87a3d54 /ipalib/plugins
parent44cdf8ef54ff761a5e38919b8cdce5128928985a (diff)
downloadfreeipa-ed7a3e005a052845b7302744c0f6c16f7cdfd511.tar.gz
freeipa-ed7a3e005a052845b7302744c0f6c16f7cdfd511.tar.xz
freeipa-ed7a3e005a052845b7302744c0f6c16f7cdfd511.zip
Don't add empty tuple to entry_attrs['externalhost']
https://fedorahosted.org/freeipa/ticket/1339
Diffstat (limited to 'ipalib/plugins')
-rw-r--r--ipalib/plugins/sudorule.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ipalib/plugins/sudorule.py b/ipalib/plugins/sudorule.py
index a7fd82775..7b70356e1 100644
--- a/ipalib/plugins/sudorule.py
+++ b/ipalib/plugins/sudorule.py
@@ -448,7 +448,8 @@ class sudorule_remove_host(LDAPRemoveMember):
except errors.EmptyModlist:
pass
failed['memberhost']['host'] = failed_hosts
- entry_attrs['externalhost'] = external_hosts
+ if external_hosts:
+ entry_attrs['externalhost'] = external_hosts
return (completed + completed_external, dn)
api.register(sudorule_remove_host)