diff options
| author | Tomas Krizek <tkrizek@redhat.com> | 2016-08-09 14:09:24 +0200 |
|---|---|---|
| committer | Martin Basti <mbasti@redhat.com> | 2016-08-09 16:24:39 +0200 |
| commit | af4ebaca6293779ef686c7bacffbc97945ebee95 (patch) | |
| tree | ece205e40da1a560e13e8964245332b7f0315147 /ipaserver/plugins | |
| parent | 96db47cfa516911741dd7942509b0a94551dbace (diff) | |
| download | freeipa-af4ebaca6293779ef686c7bacffbc97945ebee95.tar.gz freeipa-af4ebaca6293779ef686c7bacffbc97945ebee95.tar.xz freeipa-af4ebaca6293779ef686c7bacffbc97945ebee95.zip | |
Fix ipa-caalc-add-service error message
When service is not found in ipa-caalc-add-service command, return the
entire principal name of the service instead of the first character.
https://fedorahosted.org/freeipa/ticket/6171
Reviewed-By: Petr Spacek <pspacek@redhat.com>
Diffstat (limited to 'ipaserver/plugins')
| -rw-r--r-- | ipaserver/plugins/service.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipaserver/plugins/service.py b/ipaserver/plugins/service.py index 28ea364e9..a44dcaa5e 100644 --- a/ipaserver/plugins/service.py +++ b/ipaserver/plugins/service.py @@ -575,7 +575,7 @@ class service(LDAPObject): pass try: - return dn['krbprincipalname'][0] + return dn['krbprincipalname'] except KeyError: return unicode(dn) |
