From 6f8b0ed4fa8cb20a89915e74d805d4e7db90b6f9 Mon Sep 17 00:00:00 2001 From: Fraser Tweedale Date: Sun, 9 Aug 2015 01:54:41 -0400 Subject: [PATCH] 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 --- ipalib/plugins/virtual.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'))