Revision 6263189c lib/rpc.py
b/lib/rpc.py | ||
---|---|---|
467 | 467 |
idict = self._InstDict(instance, hvp=hvp, bep=bep) |
468 | 468 |
return self._SingleNodeCall(node, "instance_start", [idict]) |
469 | 469 |
|
470 |
def call_instance_shutdown(self, node, instance): |
|
470 |
def call_instance_shutdown(self, node, instance, timeout):
|
|
471 | 471 |
"""Stops an instance. |
472 | 472 |
|
473 | 473 |
This is a single-node call. |
474 | 474 |
|
475 | 475 |
""" |
476 | 476 |
return self._SingleNodeCall(node, "instance_shutdown", |
477 |
[self._InstDict(instance)]) |
|
477 |
[self._InstDict(instance), timeout])
|
|
478 | 478 |
|
479 | 479 |
def call_migration_info(self, node, instance): |
480 | 480 |
"""Gather the information necessary to prepare an instance migration. |
Also available in: Unified diff