From 52621ee31c85f676dcaa2c35915db1c60e33a2ff Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Thu, 7 Aug 2008 14:43:58 +0000 Subject: [PATCH] -Fix problem where dispatch targets get tripped up over the empty _xcatdest XML element. This fix leaves the _xcatdest element intact as some plugins detect preprocessing on it, but ensures the daemon realizes the nature of the element git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1989 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/sbin/xcatd | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xCAT-server/sbin/xcatd b/xCAT-server/sbin/xcatd index 55443ac51..759fc7103 100755 --- a/xCAT-server/sbin/xcatd +++ b/xCAT-server/sbin/xcatd @@ -903,6 +903,9 @@ sub dispatch_request { } undef $SIG{CHLD}; $dispatch_parentfd = $parfd; + if (ref($_->{'_xcatdest'}) eq 'ARRAY') { + $_->{'_xcatdest'} = $_->{'_xcatdest'}->[0]; + } if ($_->{'_xcatdest'} and thishostisnot($_->{'_xcatdest'})) { $ENV{XCATHOST} = ( $_->{'_xcatdest'} =~ /:/ ? $_->{'_xcatdest'} : $_->{'_xcatdest'}.":3001" ); $$progname.=": connection to ".$ENV{XCATHOST};