Merge "Add warning message for --state option of set command in volume" · openstack/python-openstackclient@10d1c2f · GitHub
Skip to content

Commit 10d1c2f

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "Add warning message for --state option of set command in volume"
2 parents 5ce90a8 + 3ebc752 commit 10d1c2f

6 files changed

Lines changed: 21 additions & 7 deletions

File tree

doc/source/command-objects/snapshot.rst

Lines changed: 3 additions & 2 deletions

doc/source/command-objects/volume-backup.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ Set volume backup properties
140140
.. option:: --state <state>
141141

142142
New backup state ("available" or "error") (admin only)
143+
(This option simply changes the state of the backup in the database with
144+
no regard to actual status, exercise caution when using)
143145

144146
.. _backup_set-volume-backup:
145147
.. describe:: <backup>

doc/source/command-objects/volume.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,9 @@ Set volume properties
235235
236236
New volume state
237237
("available", "error", "creating", "deleting", "in-use",
238-
"attaching", "detaching", "error_deleting" or "maintenance")
238+
"attaching", "detaching", "error_deleting" or "maintenance") (admin only)
239+
(This option simply changes the state of the volume in the database with
240+
no regard to actual status, exercise caution when using)
239241
240242
*Volume version 2 only*
241243

openstackclient/volume/v2/backup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,10 @@ def get_parser(self, prog_name):
305305
'--state',
306306
metavar='<state>',
307307
choices=['available', 'error'],
308-
help=_('New backup state ("available" or "error") (admin only)'),
308+
help=_('New backup state ("available" or "error") (admin only) '
309+
'(This option simply changes the state of the backup '
310+
'in the database with no regard to actual status, '
311+
'exercise caution when using)'),
309312
)
310313
return parser
311314

openstackclient/volume/v2/snapshot.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,11 @@ def get_parser(self, prog_name):
230230
metavar='<state>',
231231
choices=['available', 'error', 'creating', 'deleting',
232232
'error-deleting'],
233-
help=_('New snapshot state. Valid values are available, '
234-
'error, creating, deleting, and error-deleting.'),
233+
help=_('New snapshot state. ("available", "error", "creating", '
234+
'"deleting", or "error_deleting") (admin only) '
235+
'(This option simply changes the state of the snapshot '
236+
'in the database with no regard to actual status, '
237+
'exercise caution when using)'),
235238
)
236239
return parser
237240

openstackclient/volume/v2/volume.py

Lines changed: 4 additions & 1 deletion

0 commit comments

Comments
 (0)