As a part of patch 6b16d04a318d33a59, some errors were inadvertently introduced by adding documentation. This patch fixes them.
Signed-off-by: Hrvoje Ribicic <[email protected]> --- lib/hypervisor/hv_xen.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/hypervisor/hv_xen.py b/lib/hypervisor/hv_xen.py index a3f7af8..e72dadb 100644 --- a/lib/hypervisor/hv_xen.py +++ b/lib/hypervisor/hv_xen.py @@ -225,13 +225,13 @@ def _IsInstanceRunning(instance_info): def _RunningWithSuffix(suffix): return map(lambda x: x + suffix, allowable_running_prefixes) + # The shutdown suspend ("ss") state is encountered during migration, where + # the instance is still considered to be running. + # The shutdown restart ("sr") is probably encountered during restarts - still + # running. + # See Xen commit e1475a6693aac8cddc4bdd456548aa05a625556b return instance_info in _RunningWithSuffix("---") \ - # The shutdown suspend state is encountered during migration, where the - # instance is still considered to be running. - # See Xen commit e1475a6693aac8cddc4bdd456548aa05a625556b or instance_info in _RunningWithSuffix("ss-") \ - # The shutdown restart state is probably encountered during reboots. - # See the Xen commit above. or instance_info in _RunningWithSuffix("sr-") \ or instance_info == "-----d" -- 2.6.0.rc0.131.gf624c3d
