From: Federico Fanton Subject: Syntax error in xendomains script Date: Thu, 4 Dec 2008 23:10:52 +0100 Message-ID: <20081204231052.aa1a0aed.federico@panizzolo.it> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Hi everyone! I'm using Xen 3.1.2 and Heartbeat on a two-node CentOS 5.2 cluster, and I'm having a little problem with the xendomains script.. I applied the patch at http://xenbits.xensource.com/xen-unstable.hg?rev/01c8ccb551b0 but it throws a syntax error when XENDOMAINS_AUTO points to an empty directory.. I think the patch should check if $NAMES (line 333) is empty before using it as a CASE condition.. Am I wrong? (If you're wondering how I could end up with an empty XENDOMAINS_AUTO directory, it's because I'm testing the Heartbeat setup with just one VM, so I have an empty /etc/xen/auto/node2) Thanks for your time! P.S. I hope this is the right ML.. Sorry if that's not the case