fix keypair help msg

keypair delete and keypair show commands cannot work on keypair ID

Change-Id: I958fcd2ed184706b28d63cc9c73a8b566e86a16c
Closes-Bug:#1588701
This commit is contained in:
sunyajing 2016-06-06 13:16:55 +08:00 committed by Steve Martinelli
parent 3078540161
commit 5b317936cb
2 changed files with 4 additions and 4 deletions

View File

@ -40,7 +40,7 @@ Delete public key
.. describe:: <key> .. describe:: <key>
Public key to delete Public key to delete (name only)
keypair list keypair list
------------ ------------
@ -66,7 +66,7 @@ Display public key details
.. option:: --public-key .. option:: --public-key
Show only bare public key Show only bare public key (name only)
.. describe:: <key> .. describe:: <key>

View File

@ -84,7 +84,7 @@ class DeleteKeypair(command.Command):
parser.add_argument( parser.add_argument(
'name', 'name',
metavar='<key>', metavar='<key>',
help=_("Public key to delete") help=_("Public key to delete (name only)")
) )
return parser return parser
@ -118,7 +118,7 @@ class ShowKeypair(command.ShowOne):
parser.add_argument( parser.add_argument(
'name', 'name',
metavar='<key>', metavar='<key>',
help=_("Public key to display") help=_("Public key to display (name only)")
) )
parser.add_argument( parser.add_argument(
'--public-key', '--public-key',