Revision f68cc544
b/autotools/build-rpc | ||
---|---|---|
77 | 77 |
sw.Write("") |
78 | 78 |
|
79 | 79 |
note = ["This is a %s call" % kind] |
80 |
if timeout: |
|
80 |
if timeout and not callable(timeout):
|
|
81 | 81 |
note.append(" with a timeout of %s" % utils.FormatSeconds(timeout)) |
82 | 82 |
sw.Write("@note: %s", "".join(note)) |
83 | 83 |
|
b/lib/rpc_defs.py | ||
---|---|---|
463 | 463 |
("name", None, "Iallocator name"), |
464 | 464 |
("idata", None, "JSON-encoded input string"), |
465 | 465 |
], None, "Call an iallocator on a remote node"), |
466 |
("test_delay", MULTI, None, [
|
|
466 |
("test_delay", MULTI, _TestDelayTimeout, [
|
|
467 | 467 |
("duration", None, None), |
468 |
], _TestDelayTimeout, "Sleep for a fixed time on given node(s)"),
|
|
468 |
], None, "Sleep for a fixed time on given node(s)"),
|
|
469 | 469 |
("hypervisor_validate_params", MULTI, TMO_NORMAL, [ |
470 | 470 |
("hvname", None, "Hypervisor name"), |
471 | 471 |
("hvfull", None, "Parameters to be validated"), |
Also available in: Unified diff