mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-23 15:40:01 -06:00
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:
parent
98e0a4e13c
commit
80da03a216
@ -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']
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user