diff options
author | Jan Cholasta <jcholast@redhat.com> | 2013-01-16 14:14:58 +0100 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2013-03-01 16:59:42 +0100 |
commit | ef1cd6e24732e7fa64f6c4b0ce32a909fbf1df5d (patch) | |
tree | 84ad0688b942996dd7b8fa58af3e2702b92f85d2 /ipalib/plugins/sudorule.py | |
parent | e2120c31c3ba62d1bc57825b90a30d26ca58aa79 (diff) | |
download | freeipa.git-ef1cd6e24732e7fa64f6c4b0ce32a909fbf1df5d.tar.gz freeipa.git-ef1cd6e24732e7fa64f6c4b0ce32a909fbf1df5d.tar.xz freeipa.git-ef1cd6e24732e7fa64f6c4b0ce32a909fbf1df5d.zip |
Add custom mapping object for LDAP entry data.
Diffstat (limited to 'ipalib/plugins/sudorule.py')
-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 878033f0..a453dcab 100644 --- a/ipalib/plugins/sudorule.py +++ b/ipalib/plugins/sudorule.py @@ -642,7 +642,7 @@ class sudorule_add_option(LDAPQuery): dn, attrs_list, normalize=self.obj.normalize_dn ) - return dict(result=entry_attrs) + return dict(result=dict(entry_attrs)) def output_for_cli(self, textui, result, cn, **options): textui.print_dashed(_('Added option "%(option)s" to Sudo Rule "%(rule)s"') % \ @@ -697,7 +697,7 @@ class sudorule_remove_option(LDAPQuery): dn, attrs_list, normalize=self.obj.normalize_dn ) - return dict(result=entry_attrs) + return dict(result=dict(entry_attrs)) def output_for_cli(self, textui, result, cn, **options): textui.print_dashed(_('Removed option "%(option)s" from Sudo Rule "%(rule)s"') % \ |