summaryrefslogtreecommitdiff
path: root/openstackclient/common/utils.py
diff options
context:
space:
mode:
authorTang Chen <tangchen@cn.fujitsu.com>2015-11-21 19:33:14 +0800
committerTang Chen <tangchen@cn.fujitsu.com>2015-11-24 09:22:22 +0800
commit6957fb3ee7128bcabb5324bfe6f2b02a7f0dd534 (patch)
tree3c3d5fa53981e7bb979ee2c20a58cf8f073c2a83 /openstackclient/common/utils.py
parent65e6c7bc63d1a2137ae454f792b17feba7fab9b8 (diff)
downloadpython-openstackclient-6957fb3ee7128bcabb5324bfe6f2b02a7f0dd534.tar.gz
Trivial: Fix wrong doc for wait_for_status().
Two trivial fixes: 1. docs for parameters are not sorted correctly 2. missing doc for a parameter Change-Id: I0cfb65e0f897c391b9b6e7225251e88855b07a56
Diffstat (limited to 'openstackclient/common/utils.py')
-rw-r--r--openstackclient/common/utils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/openstackclient/common/utils.py b/openstackclient/common/utils.py
index 0a1f8e0e..8822cd1d 100644
--- a/openstackclient/common/utils.py
+++ b/openstackclient/common/utils.py
@@ -305,8 +305,9 @@ def wait_for_status(status_f,
:param status_f: a status function that takes a single id argument
:param res_id: the resource id to watch
- :param success_status: a list of status strings for successful completion
:param status_field: the status attribute in the returned resource object
+ :param success_status: a list of status strings for successful completion
+ :param error_status: a list of status strings for error
:param sleep_time: wait this long (seconds)
:param callback: called per sleep cycle, useful to display progress
:rtype: True on success