Revision 07b49e41 lib/hypervisor/hv_kvm.py
b/lib/hypervisor/hv_kvm.py | ||
---|---|---|
535 | 535 |
if wait < 5: |
536 | 536 |
wait *= 1.3 |
537 | 537 |
|
538 |
def StopInstance(self, instance, force=False): |
|
538 |
def StopInstance(self, instance, force=False, retry=False):
|
|
539 | 539 |
"""Stop an instance. |
540 | 540 |
|
541 | 541 |
""" |
542 |
if retry: |
|
543 |
return |
|
542 | 544 |
pidfile, pid, alive = self._InstancePidAlive(instance.name) |
543 | 545 |
if pid > 0 and alive: |
544 | 546 |
if force or not instance.hvparams[constants.HV_ACPI]: |
Also available in: Unified diff