From 6957fb3ee7128bcabb5324bfe6f2b02a7f0dd534 Mon Sep 17 00:00:00 2001 From: Tang Chen <tangchen@cn.fujitsu.com> Date: Sat, 21 Nov 2015 19:33:14 +0800 Subject: [PATCH] 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 --- openstackclient/common/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openstackclient/common/utils.py b/openstackclient/common/utils.py index 0a1f8e0e79..8822cd1d86 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