[Libvirt-cim] [PATCH] Properly quote the namespace in provider-register.sh

Dan Smith danms at us.ibm.com
Tue Dec 9 16:09:36 UTC 2008


# HG changeset patch
# User Dan Smith <danms at us.ibm.com>
# Date 1228838971 28800
# Node ID 6783a4570e3cbd33d71045a60fd136540d662633
# Parent  9e63b52769bf42a6c025b7baa32a84afff0f3828
Properly quote the namespace in provider-register.sh

This use of the namespace in an error path causes an additional error message
to be raised which adds confusion.

Signed-off-by: Dan Smith <danms at us.ibm.com>

diff -r 9e63b52769bf -r 6783a4570e3c provider-register.sh
--- a/provider-register.sh	Tue Dec 09 07:29:28 2008 -0800
+++ b/provider-register.sh	Tue Dec 09 08:09:31 2008 -0800
@@ -116,7 +116,7 @@
 		  return 1;;
 	  esac	  
 	done
-	if test $namespace = $NAMESPACE
+	if test "$namespace" = "$NAMESPACE"
 	then
 	    cat >> $OUTFILE <<EOFC
 instance of PG_ProviderCapabilities




More information about the Libvirt-cim mailing list