Blame SOURCES/bz1214359-3-fence_compute.patch

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