Skip to content

Commit 13de349

Browse files
committed
compute: Better help text for 'openstack server set --state'
Manually changing the server state is a potentially dangerous operation that should only be done under limited circumstances. It's also an admin-only operation by default. Highlight both points. Change-Id: Ifd8aec94937764202131ba8caf6b507caa76d7e9 Signed-off-by: Stephen Finucane <sfinucan@redhat.com> Story: 2008549 Task: 41672
1 parent fa8c8d2 commit 13de349

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

openstackclient/compute/v2/server.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4023,7 +4023,12 @@ def get_parser(self, prog_name):
40234023
'--state',
40244024
metavar='<state>',
40254025
choices=['active', 'error'],
4026-
help=_('New server state (valid value: active, error)'),
4026+
help=_(
4027+
'New server state '
4028+
'**WARNING** This can result in instances that are no longer '
4029+
'usable and should be used with caution '
4030+
'(admin only)'
4031+
),
40274032
)
40284033
parser.add_argument(
40294034
'--description',

0 commit comments

Comments
 (0)