From 2b632c48e3c84ef1f153d76741f5566a762c63c1 Mon Sep 17 00:00:00 2001 From: TommyLike Date: Thu, 24 May 2018 16:24:42 +0800 Subject: [PATCH] [Optimize] Update help text for hint argument Update scheduler_hint's help text to describe how to specify multiple hints and array value. Change-Id: If975e06b6e9914848498fa2c3ab27c2f41d7860b --- cinderclient/v2/shell.py | 4 +++- cinderclient/v3/shell.py | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/cinderclient/v2/shell.py b/cinderclient/v2/shell.py index 16412d813..0a84bfab4 100644 --- a/cinderclient/v2/shell.py +++ b/cinderclient/v2/shell.py @@ -294,7 +294,9 @@ class CheckSizeArgForCreate(argparse.Action): dest='scheduler_hints', action='append', default=[], - help='Scheduler hint, like in nova.') + help='Scheduler hint, similar to nova. Repeat option to set ' + 'multiple hints. Values with the same key will be stored ' + 'as a list.') @utils.arg('--allow-multiattach', dest='multiattach', action="store_true", diff --git a/cinderclient/v3/shell.py b/cinderclient/v3/shell.py index 4149f612d..206c920df 100644 --- a/cinderclient/v3/shell.py +++ b/cinderclient/v3/shell.py @@ -564,7 +564,9 @@ def do_reset_state(cs, args): dest='scheduler_hints', action='append', default=[], - help='Scheduler hint, like in nova.') + help='Scheduler hint, similar to nova. Repeat option to set ' + 'multiple hints. Values with the same key will be stored ' + 'as a list.') @utils.arg('--allow-multiattach', dest='multiattach', action="store_true",