From 1d85a3f089121d035f1bcf5bcffb1b9c506c2e36 Mon Sep 17 00:00:00 2001 From: Huanxuan Ao Date: Mon, 27 Jun 2016 19:53:52 +0800 Subject: [PATCH] Change "ID only" to "name or ID" for backup commands Tested "find_resulce()" can find a backup by name or ID. But some help messages and doc were "ID only", this patch modify them. Change-Id: I22dcc3a0b40f2bafabb6d26498158e2468037312 --- doc/source/command-objects/backup.rst | 6 +++--- openstackclient/volume/v1/backup.py | 6 +++--- openstackclient/volume/v2/backup.py | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/doc/source/command-objects/backup.rst b/doc/source/command-objects/backup.rst index 9d7fb95d68..aed3c240ac 100644 --- a/doc/source/command-objects/backup.rst +++ b/doc/source/command-objects/backup.rst @@ -49,7 +49,7 @@ Delete backup(s) .. _backup_delete-backup: .. describe:: - Backup(s) to delete (ID only) + Backup(s) to delete (name or ID) backup list ----------- @@ -81,7 +81,7 @@ Restore backup .. _backup_restore-backup: .. describe:: - Backup to restore (ID only) + Backup to restore (name or ID) .. describe:: @@ -101,4 +101,4 @@ Display backup details .. _backup_show-backup: .. describe:: - Backup to display (ID only) + Backup to display (name or ID) diff --git a/openstackclient/volume/v1/backup.py b/openstackclient/volume/v1/backup.py index 212c74eff2..5f34a2c51f 100644 --- a/openstackclient/volume/v1/backup.py +++ b/openstackclient/volume/v1/backup.py @@ -76,7 +76,7 @@ class DeleteBackup(command.Command): 'backups', metavar='', nargs="+", - help=_('Backup(s) to delete (ID only)'), + help=_('Backup(s) to delete (name or ID)'), ) return parser @@ -150,7 +150,7 @@ class RestoreBackup(command.Command): parser.add_argument( 'backup', metavar='', - help=_('Backup to restore (ID only)') + help=_('Backup to restore (name or ID)') ) parser.add_argument( 'volume', @@ -177,7 +177,7 @@ class ShowBackup(command.ShowOne): parser.add_argument( 'backup', metavar='', - help=_('Backup to display (ID only)') + help=_('Backup to display (name or ID)') ) return parser diff --git a/openstackclient/volume/v2/backup.py b/openstackclient/volume/v2/backup.py index 6a44e30c57..2cf8f3675b 100644 --- a/openstackclient/volume/v2/backup.py +++ b/openstackclient/volume/v2/backup.py @@ -147,7 +147,7 @@ class RestoreBackup(command.ShowOne): parser.add_argument( "backup", metavar="", - help=_("Backup to restore (ID only)") + help=_("Backup to restore (name or ID)") ) parser.add_argument( "volume",