[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] [PATCH] resource-agents: Fix to allow yes, true or 1 to enable --tunnelled



Fix to allow yes, true or 1 to enable --tunnelled
>From 1e554ff011aa3d3deef3c3b7ffddb5b133422e5d Mon Sep 17 00:00:00 2001
From: Chris Feist <cfeist redhat com>
Date: Mon, 5 Mar 2012 17:06:47 -0600
Subject: [PATCH] Fix to allow yes, true or 1 to enable --tunnelled

---
 rgmanager/src/resources/vm.sh |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/rgmanager/src/resources/vm.sh b/rgmanager/src/resources/vm.sh
index 253cf35..7c8ba9a 100644
--- a/rgmanager/src/resources/vm.sh
+++ b/rgmanager/src/resources/vm.sh
@@ -959,9 +959,11 @@ migrate()
 		migrate_opt="--live"
 	fi
 
-	if [ "$OCF_RESKEY_tunnelled" = "on" ]; then
-		tunnelled_opt="--tunnelled --p2p"
-	fi
+	case "$OCF_RESKEY_tunnelled" in
+		yes|true|1|YES|TRUE|on|ON)
+			tunnelled_opt="--tunnelled --p2p"
+		;;
+	esac
 
 	# Patch from Marcelo Azevedo to migrate over private
 	# LANs instead of public LANs
-- 
1.7.7.6


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]