From 43a07e133d0498dacc3c081c68508377d39e823b Mon Sep 17 00:00:00 2001 From: Huanxuan Ao Date: Mon, 4 Jul 2016 14:45:40 +0800 Subject: [PATCH] Add missing '(name only)' message for keypair in computev2 In 'keypair show' command. One help message had '(name only)' but the doc had not. And another had not '(name only)' but the doc had. This patch Fixs them and keeps the consistent between doc and help message. Change-Id: Ic88219ae25a6f545a1db39e6b585e1857ae9e2e0 --- doc/source/command-objects/keypair.rst | 2 +- openstackclient/compute/v2/keypair.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/source/command-objects/keypair.rst b/doc/source/command-objects/keypair.rst index 64cc20cd4c..af50a6511d 100644 --- a/doc/source/command-objects/keypair.rst +++ b/doc/source/command-objects/keypair.rst @@ -70,4 +70,4 @@ Display public key details .. describe:: - Public key to display + Public key to display (name only) diff --git a/openstackclient/compute/v2/keypair.py b/openstackclient/compute/v2/keypair.py index 3725a3a889..d30fd429e3 100644 --- a/openstackclient/compute/v2/keypair.py +++ b/openstackclient/compute/v2/keypair.py @@ -146,7 +146,7 @@ class ShowKeypair(command.ShowOne): '--public-key', action='store_true', default=False, - help=_("Show only bare public key") + help=_("Show only bare public key (name only)") ) return parser