Merge ~cjwatson/launchpad:export-sshkey-getFullKeyText into launchpad:master
Status: | Merged |
---|---|
Approved by: | Colin Watson |
Approved revision: | 1a520e5a6e8c9add2bbcb8bb534e61e6f1913cb8 |
Merge reported by: | Otto Co-Pilot |
Merged at revision: | not available |
Proposed branch: | ~cjwatson/launchpad:export-sshkey-getFullKeyText |
Merge into: | launchpad:master |
Diff against target: |
88 lines (+39/-1) 3 files modified
lib/lp/registry/browser/person.py (+8/-0) lib/lp/registry/interfaces/ssh.py (+4/-0) lib/lp/registry/tests/test_ssh.py (+27/-1) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Guruprasad | Approve | ||
Review via email: mp+446623@code.launchpad.net |
Commit message
Export ISSHKey.
Description of the change
There are currently several cron jobs on loganberry that export email and SSH key data for the members of several teams, using `scripts/
As far as I can see, the only API gap here is that we can only extract the raw key text for an SSH key, and not the "full" key text that's decorated with the key type and comment in a format suitable for adding to an OpenSSH `authorized_keys` file. That transformation isn't quite trivial, so export a method that does it on the webservice.
LGTM 👍