Blame SOURCES/bz1214359-3-fence_compute.patch

e4ffb1
From da2f40c6f7ae8263b4dd27f076a8ffe9d03b1534 Mon Sep 17 00:00:00 2001
e4ffb1
From: "Fabio M. Di Nitto" <fdinitto@redhat.com>
e4ffb1
Date: Mon, 8 Jun 2015 13:27:47 +0200
e4ffb1
Subject: [PATCH 3/4] fence_compute: fix on-shared-storage option parsing
e4ffb1
e4ffb1
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
e4ffb1
---
e4ffb1
 fence/agents/compute/fence_compute.py | 8 +++-----
e4ffb1
 1 file changed, 3 insertions(+), 5 deletions(-)
e4ffb1
e4ffb1
diff --git a/fence/agents/compute/fence_compute.py b/fence/agents/compute/fence_compute.py
e4ffb1
index 66cf08f..c2c90fc 100644
e4ffb1
--- a/fence/agents/compute/fence_compute.py
e4ffb1
+++ b/fence/agents/compute/fence_compute.py
e4ffb1
@@ -98,12 +98,10 @@ def set_power_status(_, options):
e4ffb1
 		logging.debug("Waiting for nova to update it's internal state")
e4ffb1
 		time.sleep(1)
e4ffb1
 
e4ffb1
-	if "--no-shared-storage" not in options:
e4ffb1
-		# If the admin sets this when they DO have shared
e4ffb1
-		# storage in use, then they get what they asked for
e4ffb1
-		on_shared_storage = True
e4ffb1
-	else:
e4ffb1
+	if options["--no-shared-storage"] != "False":
e4ffb1
 		on_shared_storage = False
e4ffb1
+	else:
e4ffb1
+		on_shared_storage = True
e4ffb1
 
e4ffb1
 	_host_evacuate(options["--plug"], on_shared_storage)
e4ffb1
 	return
e4ffb1
-- 
e4ffb1
1.9.3
e4ffb1