Generate or import a keypair example is wrong

Bug #1020614 reported by Marios Andreou
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-manuals
Fix Released
Medium
Tom Fifield

Bug Description

At http://api.openstack.org/ and under "Compute API Extensions" --> "Keypairs" the example given for the 'generate or import a keypair' operation is wrong:

 POST v1.1/{tenant_id}/os-keypairs

When the optional public-key parameter is provided, thereby importing a keypair, rather than generating a new one, the reponse will clearly not contain the private_key.

thanks, marios

Tags: compute-api
Tom Fifield (fifieldt)
tags: added: compute-api
Changed in openstack-manuals:
status: New → Confirmed
importance: Undecided → Medium
Tom Fifield (fifieldt)
Changed in openstack-manuals:
assignee: nobody → Tom Fifield (fifieldt)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-manuals (master)

Fix proposed to branch: master
Review: https://review.openstack.org/13069

Revision history for this message
Tom Fifield (fifieldt) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-manuals (master)

Reviewed: https://review.openstack.org/13069
Committed: http://github.com/openstack/openstack-manuals/commit/5976ad884b32f441cc166e013f01f46e213d3df2
Submitter: Jenkins
Branch: master

commit 5976ad884b32f441cc166e013f01f46e213d3df2
Author: Tom Fifield <email address hidden>
Date: Sun Sep 16 20:22:57 2012 +1000

    Fix generate/import keypair example in API doc

    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

Changed in openstack-manuals:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.