From 609cbcef17cd0051ecb86bc60a29cf9c2be2517f Mon Sep 17 00:00:00 2001 From: Masayuki Igawa Date: Fri, 22 Mar 2013 21:29:55 +0900 Subject: [PATCH] Fix keypair-delete help documents The help documents of keypair-delete parameter should indicate "name". Fixes bug 1158733 Change-Id: Ib7e648d22024828f8a4e5b3b51c5ed8f6b4dc057 --- README.rst | 2 +- novaclient/v1_1/shell.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index c0416d2a..6a4fcde1 100644 --- a/README.rst +++ b/README.rst @@ -129,7 +129,7 @@ You'll find complete documentation on the shell by running image-meta Set or Delete metadata on an image. image-show Show details about the given image. 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 list List active servers. live-migration Migrates a running instance to a new machine. diff --git a/novaclient/v1_1/shell.py b/novaclient/v1_1/shell.py index 6f7ca281..a0d802c6 100644 --- a/novaclient/v1_1/shell.py +++ b/novaclient/v1_1/shell.py @@ -2039,7 +2039,7 @@ def do_keypair_add(cs, args): @utils.arg('name', metavar='', help='Keypair name to delete.') def do_keypair_delete(cs, args): - """Delete keypair by its id""" + """Delete keypair by its name""" name = args.name cs.keypairs.delete(name)