Remove misleading authorization error message in cert-request with --add

https://fedorahosted.org/freeipa/ticket/4540

Reviewed-By: Martin Kosek <mkosek@redhat.com>
This commit is contained in:
Jan Cholasta 2014-10-07 18:38:20 +02:00 committed by Martin Kosek
parent 98e0a4e13c
commit 80da03a216

View File

@ -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 = service['result']
dn = service['dn']