Revision 76e2e6f6 lib/hypervisor/hv_xen.py
b/lib/hypervisor/hv_xen.py | ||
---|---|---|
523 | 523 |
def _ShutdownInstance(self, name): |
524 | 524 |
"""Shutdown an instance if the instance is running. |
525 | 525 |
|
526 |
@type name: string |
|
527 |
@param name: name of the instance to stop |
|
528 |
|
|
529 | 526 |
The '-w' flag waits for shutdown to complete which avoids the need |
530 | 527 |
to poll in the case where we want to destroy the domain |
531 | 528 |
immediately after shutdown. |
532 | 529 |
|
530 |
@type name: string |
|
531 |
@param name: name of the instance to stop |
|
532 |
|
|
533 | 533 |
""" |
534 | 534 |
instance_info = self.GetInstanceInfo(name) |
535 | 535 |
|
Also available in: Unified diff