From adfc26aeeeeb65d5f66debd2283cf8690827d48f Mon Sep 17 00:00:00 2001 From: Marek 'marx' Grac Date: Wed, 19 Aug 2015 15:41:58 +0200 Subject: [PATCH] fence_virsh: Fix --missing-as-off Patch 0aacfcf209c473ab4c1fff4de653a673b92484de was pushed unintentionally before tests were done. --- fence/agents/virsh/fence_virsh.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fence/agents/virsh/fence_virsh.py b/fence/agents/virsh/fence_virsh.py index 24d360c..643f31f 100644 --- a/fence/agents/virsh/fence_virsh.py +++ b/fence/agents/virsh/fence_virsh.py @@ -54,7 +54,7 @@ def get_power_status(conn, options): for line in conn.before.splitlines(): if line.strip() in ["running", "blocked", "idle", "no state", "paused"]: return "on" - if "error: failed to get domain" in line.strip() and options.has_key("missing_as_off"): + if "error: failed to get domain" in line.strip() and options.has_key("--missing-as-off"): return "off" if "error:" in line.strip(): fail_usage("Failed: You have to enter existing name/UUID of virtual machine!")