From 2e5e005ce444dbaaa5ea9a3cd3e752b69ef9a576 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Thu, 6 May 2010 17:38:28 +0000 Subject: [PATCH] -Fix litetree compatibility with 2.3 images git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5993 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/litetree.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/litetree.pm b/xCAT-server/lib/xcat/plugins/litetree.pm index 305b856c3..2e2fb514d 100644 --- a/xCAT-server/lib/xcat/plugins/litetree.pm +++ b/xCAT-server/lib/xcat/plugins/litetree.pm @@ -70,7 +70,10 @@ sub process_request { # if request comes from node post script .awk file. }elsif($request->{'_xcat_clienthost'}){ my @nodenames = noderange($request->{'_xcat_clienthost'}->[0].",".$request->{'_xcat_clientfqdn'}->[0]); - $noderange = \@nodenames; + if (@nodenames) { + $noderange = \@nodenames; + $request->{node} = $noderange; + } }else{ $callback->({error=>["Well Kemosabi, I can't figure out who you are."],errorcode=>[1]}); return;