Skip to content

Commit

Permalink
Fix generate/import keypair example in API doc
Browse files Browse the repository at this point in the history
fixes bug 1020614

As per the bug report, the example in the keypairs extension
was incorrect. If the optional public key is specified (i.e. a
keypair import), a private key will not be returned.

The most common case is to specify only a name and get back a
full keypair, so this patch modifies the examples to portray this.

Change-Id: I9c8f2269ee5374ef609a91bbc938066363a033cd
  • Loading branch information
fifieldt committed Sep 16, 2012
1 parent 366ea6b commit 5976ad8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
@@ -1,6 +1,5 @@
{
"keypair": {
"name": "testkeypair",
"public_key": "ssh-rsa AAAB3NzaC1yc2EAAAADAQABAAAAgQDS75K9dCGNb8wUIqSRT8UZU1riwaMBXViZ6m7hvRi9adVJrNzUQVJEYotqGXpe4rwC7iCfwmVxWj/wu/h4OOoBqdkQcQMcuggMpNvnymhwUfj6vg+zEOpFcZg1mY3dvMoDnnUAClLB8/ELY1FtKTyTJyKJN7yyR4WkMN5H4BR/Lw== nova@az1-nv-schedule-0000"
}
}
@@ -1,7 +1,4 @@
<keypair>
<public_key>
ssh-rsa AAAB3NzaC1yc2EAAAADAQABAAAAgQDS75K9dCGNb8wUIqSRT8UZU1riwaMBXViZ6m7hvRi9adVJrNzUQVJEYotqGXpe4rwC7iCfwmVxWj/wu/h4OOoBqdkQcQMcuggMpNvnymhwUfj6vg+zEOpFcZg1mY3dvMoDnnUAClLB8/ELY1FtKTyTJyKJN7yyR4WkMN5H4BR/Lw== nova@az1-nv-schedule-0000
</public_key>
<name>
testkeypair
</name>
Expand Down

0 comments on commit 5976ad8

Please sign in to comment.