diff options
author | Fraser Tweedale <ftweedal@redhat.com> | 2015-08-09 01:54:41 -0400 |
---|---|---|
committer | Jan Cholasta <jcholast@redhat.com> | 2015-08-11 12:25:51 +0200 |
commit | 8cc61cc42c3e3422e79da69c7a2c3e594b5931ca (patch) | |
tree | 8e1ff8babb47322d170f616ab16c261b60310dc9 | |
parent | 609abd5e30cbf84a7a23bc025e89df45222333f9 (diff) | |
download | freeipa-8cc61cc42c3e3422e79da69c7a2c3e594b5931ca.tar.gz freeipa-8cc61cc42c3e3422e79da69c7a2c3e594b5931ca.tar.xz freeipa-8cc61cc42c3e3422e79da69c7a2c3e594b5931ca.zip |
Give more info on virtual command access denial
The current error message upon a virutal command access denial does
not give any information about the virtual operation that was
prohibited. Add more information to the ACIError message.
Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
-rw-r--r-- | ipalib/plugins/virtual.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipalib/plugins/virtual.py b/ipalib/plugins/virtual.py index 414de4c00..3bbe32e53 100644 --- a/ipalib/plugins/virtual.py +++ b/ipalib/plugins/virtual.py @@ -62,7 +62,7 @@ class VirtualCommand(Command): try: if not ldap.can_write(operationdn, "objectclass"): raise errors.ACIError( - info=_('not allowed to perform this command')) + info=_('not allowed to perform operation: %s') % operation) except errors.NotFound: raise errors.ACIError(info=_('No such virtual command')) |