diff options
| author | Huanxuan Ao <huanxuan.ao@easystack.cn> | 2016-09-25 15:44:03 +0800 |
|---|---|---|
| committer | Huanxuan Ao <huanxuan.ao@easystack.cn> | 2016-09-26 02:42:47 +0000 |
| commit | 3ebc7520a6ecdf6260757daf7ad913a1bff4e342 (patch) | |
| tree | 8166244d969003e1ab483bbbbc164cdf86cafbb5 /openstackclient/volume/v2/snapshot.py | |
| parent | 559215d59d40a35c3a741af99116878c6024078f (diff) | |
| download | python-openstackclient-3ebc7520a6ecdf6260757daf7ad913a1bff4e342.tar.gz | |
Add warning message for --state option of set command in volume
There are some set commands can set object state, it maybe
a danger behavor for users, so add explanation and warning
in the help message of the "--state" option to talk users
be caution when using (cinderclient have done this too)
Change-Id: I6a902887ea98879999c9972f36b1b7ef332173c3
Diffstat (limited to 'openstackclient/volume/v2/snapshot.py')
| -rw-r--r-- | openstackclient/volume/v2/snapshot.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/openstackclient/volume/v2/snapshot.py b/openstackclient/volume/v2/snapshot.py index 0d826551..4994e0da 100644 --- a/openstackclient/volume/v2/snapshot.py +++ b/openstackclient/volume/v2/snapshot.py @@ -230,8 +230,11 @@ class SetSnapshot(command.Command): metavar='<state>', choices=['available', 'error', 'creating', 'deleting', 'error-deleting'], - help=_('New snapshot state. Valid values are available, ' - 'error, creating, deleting, and error-deleting.'), + help=_('New snapshot state. ("available", "error", "creating", ' + '"deleting", or "error_deleting") (admin only) ' + '(This option simply changes the state of the snapshot ' + 'in the database with no regard to actual status, ' + 'exercise caution when using)'), ) return parser |
