]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
sanlock: add missing test command in virt-sanlock-cleanup.in
authorAlex Jia <ajia@redhat.com>
Mon, 8 Apr 2013 09:41:50 +0000 (17:41 +0800)
committerAlex Jia <ajia@redhat.com>
Tue, 9 Apr 2013 05:01:33 +0000 (13:01 +0800)
RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=949483

Signed-off-by: Alex Jia <ajia@redhat.com>
tools/virt-sanlock-cleanup.in

index a9b7c2ef84c3aabf76b8a62bc445ffbddf5b032a..5389fc73c1f16a1a991ab79949a78a2abd2ebd2c 100644 (file)
@@ -11,7 +11,7 @@ fi
 LOCKSPACE="__LIBVIRT__DISKS__"
 
 LOCKDIR=`augtool print '/files@sysconfdir@/libvirt/qemu-sanlock.conf/disk_lease_dir'`
-if test $? != 0 || "x$LOCKDIR" = "x" ; then
+if test $? != 0 || test "x$LOCKDIR" = "x" ; then
   LOCKDIR="@localstatedir@/lib/libvirt/sanlock"
 fi