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