Enhance the parameter check for "path" in cluster collect

Set the parameter "path" as required in senlinclient.

Change-Id: I0ff95ac201ad3b1e6bbfc22cebf258d68cb4f31e
Closes-Bug: #1643401
This commit is contained in:
miaohb
2016-11-23 13:58:23 +08:00
parent 82771162c9
commit 792f6aa37d

View File

@@ -560,7 +560,7 @@ def do_cluster_create(service, args):
_show_cluster(service, cluster.id)
@utils.arg('-p', '--path', metavar='<PATH>',
@utils.arg('-p', '--path', metavar='<PATH>', required=True,
help=_('A Json path string specifying the attribute to collect.'))
@utils.arg('-L', '--list', default=False, action="store_true",
help=_('Print a full list that contains both node ids and '