Fix keypair-delete help documents
The help documents of keypair-delete parameter should indicate "name". Fixes bug 1158733 Change-Id: Ib7e648d22024828f8a4e5b3b51c5ed8f6b4dc057
This commit is contained in:
parent
22b8856815
commit
609cbcef17
@ -129,7 +129,7 @@ You'll find complete documentation on the shell by running
|
|||||||
image-meta Set or Delete metadata on an image.
|
image-meta Set or Delete metadata on an image.
|
||||||
image-show Show details about the given image.
|
image-show Show details about the given image.
|
||||||
keypair-add Create a new key pair for use with instances
|
keypair-add Create a new key pair for use with instances
|
||||||
keypair-delete Delete keypair by its id
|
keypair-delete Delete keypair by its name
|
||||||
keypair-list Print a list of keypairs for a user
|
keypair-list Print a list of keypairs for a user
|
||||||
list List active servers.
|
list List active servers.
|
||||||
live-migration Migrates a running instance to a new machine.
|
live-migration Migrates a running instance to a new machine.
|
||||||
|
@ -2039,7 +2039,7 @@ def do_keypair_add(cs, args):
|
|||||||
|
|
||||||
@utils.arg('name', metavar='<name>', help='Keypair name to delete.')
|
@utils.arg('name', metavar='<name>', help='Keypair name to delete.')
|
||||||
def do_keypair_delete(cs, args):
|
def do_keypair_delete(cs, args):
|
||||||
"""Delete keypair by its id"""
|
"""Delete keypair by its name"""
|
||||||
name = args.name
|
name = args.name
|
||||||
cs.keypairs.delete(name)
|
cs.keypairs.delete(name)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user