Adding Extensions and removing state and id for cloudpulse run
Change-Id: I139752883183665121c773ef80f1ed92b4dc761c
This commit is contained in:
parent
4f04d3dc9f
commit
9730cae71a
@ -28,23 +28,21 @@ def do_result(cs, args):
|
|||||||
sortby_index=1)
|
sortby_index=1)
|
||||||
|
|
||||||
|
|
||||||
@utils.arg('--name',
|
@utils.arg('name',
|
||||||
metavar='<name>',
|
metavar='<name>',
|
||||||
required=True,
|
help='Name of the healthcheck to run')
|
||||||
help='Name of the healthcheck to create.')
|
@utils.arg('--extension',
|
||||||
@utils.arg('--state',
|
metavar='<extension>',
|
||||||
required=True,
|
help='Name of the health check extension.')
|
||||||
metavar='<state>',
|
@utils.arg('--test-args',
|
||||||
help='state of the healthcheck')
|
metavar='<KEY1=VALUE1;KEY2=VALUE2...>',
|
||||||
@utils.arg('--id',
|
help='Arguments in key,value pair for the health check extension.')
|
||||||
required=True,
|
@utils.arg('--args-file',
|
||||||
metavar='<id>',
|
metavar='<FILE>',
|
||||||
help='id of the healthcheck')
|
help='Path to the file which is needed by the extension.')
|
||||||
def do_run(cs, args):
|
def do_run(cs, args):
|
||||||
opts = {}
|
opts = {}
|
||||||
opts['name'] = args.name
|
opts['name'] = args.name
|
||||||
opts['id'] = args.id
|
|
||||||
opts['state'] = args.state
|
|
||||||
healtcheck = cs.healthcheck.create(**opts)
|
healtcheck = cs.healthcheck.create(**opts)
|
||||||
utils.print_dict(healtcheck._info)
|
utils.print_dict(healtcheck._info)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user