RHEL53 - BZ 453429: Fix conditional check of $OCF_RESKEY_migration_mapping

Ryan O'Hara rohara@fedoraproject.org
Thu Nov 6 20:10:00 GMT 2008


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=4505c49dbde32cce42b68d24ebe87a3bcb8a8a44
Commit:        4505c49dbde32cce42b68d24ebe87a3bcb8a8a44
Parent:        2793d0acea66a0b09b7953d2928e5a0e5e1dcbfb
Author:        Ryan O'Hara <rohara@redhat.com>
AuthorDate:    Thu Nov 6 14:07:29 2008 -0600
Committer:     Ryan O'Hara <rohara@redhat.com>
CommitterDate: Thu Nov 6 14:08:45 2008 -0600

BZ 453429: Fix conditional check of $OCF_RESKEY_migration_mapping

to be double quoted.
---
 rgmanager/src/resources/vm.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/rgmanager/src/resources/vm.sh b/rgmanager/src/resources/vm.sh
index 9c09d3f..c61ca7c 100755
--- a/rgmanager/src/resources/vm.sh
+++ b/rgmanager/src/resources/vm.sh
@@ -487,7 +487,7 @@ migrate()
 
 	# Patch from Marcelo Azevedo to migrate over private
 	# LANs instead of public LANs
-	if [ -n $OCF_RESKEY_migration_mapping ]; then
+	if [ -n "$OCF_RESKEY_migration_mapping" ]; then
 		target=${OCF_RESKEY_migration_mapping#*$target:} target=${target%%,*}
 	fi
 



More information about the Cluster-cvs mailing list