From 8e602eaf46b71ad8f713f549d6a823c70567bb22 Mon Sep 17 00:00:00 2001 From: Jan Cholasta Date: Tue, 7 Oct 2014 18:38:20 +0200 Subject: Remove misleading authorization error message in cert-request with --add https://fedorahosted.org/freeipa/ticket/4540 Reviewed-By: Martin Kosek --- ipalib/plugins/cert.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'ipalib') diff --git a/ipalib/plugins/cert.py b/ipalib/plugins/cert.py index e4918a480..679ac14a6 100644 --- a/ipalib/plugins/cert.py +++ b/ipalib/plugins/cert.py @@ -365,11 +365,7 @@ class cert_request(VirtualCommand): if not add: raise errors.NotFound(reason=_("The service principal for " "this request doesn't exist.")) - try: - service = api.Command['service_add'](principal, force=True) - except errors.ACIError: - raise errors.ACIError(info=_('You need to be a member of ' - 'the serviceadmin role to add services')) + service = api.Command['service_add'](principal, force=True) service = service['result'] dn = service['dn'] -- cgit