summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2014-10-07 18:38:20 +0200
committerMartin Kosek <mkosek@redhat.com>2014-10-08 09:21:37 +0200
commit80da03a2169de3a78edec42c1eab1f87734f49a7 (patch)
treeee38367c178cdbda2fb12627a9428ec896650799
parent98e0a4e13c101d3ea1f6f8968b3f4e71624af1e6 (diff)
downloadfreeipa-80da03a2169de3a78edec42c1eab1f87734f49a7.tar.gz
freeipa-80da03a2169de3a78edec42c1eab1f87734f49a7.tar.xz
freeipa-80da03a2169de3a78edec42c1eab1f87734f49a7.zip
Remove misleading authorization error message in cert-request with --add
https://fedorahosted.org/freeipa/ticket/4540 Reviewed-By: Martin Kosek <mkosek@redhat.com>
-rw-r--r--ipalib/plugins/cert.py6
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']