diff options
author | Jan Cholasta <jcholast@redhat.com> | 2014-10-07 18:38:20 +0200 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2014-10-08 09:21:37 +0200 |
commit | 8e602eaf46b71ad8f713f549d6a823c70567bb22 (patch) | |
tree | 60d016ae980c9c64b881cb249c6e33132c128325 /ipalib | |
parent | 0cdaf2c48fa7cc44229e9e490fdad0157abdabed (diff) | |
download | freeipa-8e602eaf46b71ad8f713f549d6a823c70567bb22.tar.gz freeipa-8e602eaf46b71ad8f713f549d6a823c70567bb22.tar.xz freeipa-8e602eaf46b71ad8f713f549d6a823c70567bb22.zip |
Remove misleading authorization error message in cert-request with --add
https://fedorahosted.org/freeipa/ticket/4540
Reviewed-By: Martin Kosek <mkosek@redhat.com>
Diffstat (limited to 'ipalib')
-rw-r--r-- | ipalib/plugins/cert.py | 6 |
1 files changed, 1 insertions, 5 deletions
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'] |