Blame SOURCES/bz1254821-fence_virsh-missing-as-off-2.patch

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