summaryrefslogtreecommitdiff
path: root/openstackclient
diff options
context:
space:
mode:
authorStephen Finucane <sfinucan@redhat.com>2021-06-16 18:09:32 +0100
committerStephen Finucane <sfinucan@redhat.com>2021-06-16 18:09:32 +0100
commit13de3494115c1c460613b9792d1a4186234a25be (patch)
tree14aca69d30a7065ef37f549b684c05dfa162cfea /openstackclient
parentfa8c8d26a7696d169b0b9d5aaf6b723d8feee08a (diff)
downloadpython-openstackclient-13de3494115c1c460613b9792d1a4186234a25be.tar.gz
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
Diffstat (limited to 'openstackclient')
-rw-r--r--openstackclient/compute/v2/server.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/openstackclient/compute/v2/server.py b/openstackclient/compute/v2/server.py
index 468c6b1b..ef0f7149 100644
--- a/openstackclient/compute/v2/server.py
+++ b/openstackclient/compute/v2/server.py
@@ -4023,7 +4023,12 @@ class SetServer(command.Command):
'--state',
metavar='<state>',
choices=['active', 'error'],
- help=_('New server state (valid value: active, error)'),
+ help=_(
+ 'New server state '
+ '**WARNING** This can result in instances that are no longer '
+ 'usable and should be used with caution '
+ '(admin only)'
+ ),
)
parser.add_argument(
'--description',