diff options
author | liu-sheng <liusheng@huawei.com> | 2014-06-04 10:46:44 +0800 |
---|---|---|
committer | liu-sheng <liusheng@huawei.com> | 2014-06-17 11:29:50 +0800 |
commit | 67183f76b692d74fb255151e682ad7ce0171a01e (patch) | |
tree | f7312c229889b976f17a402d064994219b39268d | |
parent | 1ba3cd7641953f875d5c9a651f0f06d2841ff258 (diff) | |
download | python-ceilometerclient-67183f76b692d74fb255151e682ad7ce0171a01e.tar.gz |
Provide explicit help string of resource-metadata
Currently, the "--resource-metadata" in ceilometer sample-create command
is not easy to use. For compatibility, this patch just provides an
explicit help string for the parameter.
Change-Id: I6d68d5b653c3b33808cba6f9a781301fba9b44e3
Closes-Bug: #1324759
-rw-r--r-- | ceilometerclient/v2/shell.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ceilometerclient/v2/shell.py b/ceilometerclient/v2/shell.py index 7c4629b..1c1eafe 100644 --- a/ceilometerclient/v2/shell.py +++ b/ceilometerclient/v2/shell.py @@ -144,7 +144,8 @@ def do_sample_list(cc, args): @utils.arg('--sample-volume', metavar='<SAMPLE_VOLUME>', required=True, help='The sample volume.') @utils.arg('--resource-metadata', metavar='<RESOURCE_METADATA>', - help='Resource metadata.') + help='Resource metadata. Provided value should be a set of ' + 'key-value pairs e.g. {"key":"value"}.') @utils.arg('--timestamp', metavar='<TIMESTAMP>', help='The sample timestamp.') def do_sample_create(cc, args={}): |