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