summaryrefslogtreecommitdiff
path: root/doc/source/command-objects
diff options
context:
space:
mode:
authorTang Chen <chen.tang@easystack.cn>2016-05-25 11:12:57 +0800
committerTang Chen <chen.tang@easystack.cn>2016-06-04 22:42:46 +0800
commitac1d86c34333780e30b9393d155ae84a769ac222 (patch)
treeae59bd68b27ae960ffa759118650bad74c939c12 /doc/source/command-objects
parent81718beb8f2fa891b10c0a18e3378188daed9f7d (diff)
downloadpython-openstackclient-ac1d86c34333780e30b9393d155ae84a769ac222.tar.gz
Refactor SetService --enable/disable option
This patch changes the following: 1. --enable/disable option should follow the rules in the doc below: http://docs.openstack.org/developer/python-openstackclient/command-options.html#boolean-options 2. "--disable-resion" is specified but not "--disable", an exception is raised instead of igoring "--disable-reason" option. Change-Id: I92e9234111e661bfe7119a8e19389a87c874ab0c
Diffstat (limited to 'doc/source/command-objects')
-rw-r--r--doc/source/command-objects/compute-service.rst5
1 files changed, 2 insertions, 3 deletions
diff --git a/doc/source/command-objects/compute-service.rst b/doc/source/command-objects/compute-service.rst
index bda64c81..71225bc3 100644
--- a/doc/source/command-objects/compute-service.rst
+++ b/doc/source/command-objects/compute-service.rst
@@ -63,7 +63,7 @@ Set service command
.. _compute-service-set:
.. option:: --enable
- Enable service (default)
+ Enable service
.. option:: --disable
@@ -71,8 +71,7 @@ Set service command
.. option:: --disable-reason <reason>
- Reason for disabling the service (in quotes). Note that when the service
- is enabled, this option is ignored.
+ Reason for disabling the service (in quotes). Should be used with --disable option.
.. describe:: <host>