From 3c4b000f9ad0a7bb61477d73ef6a9b4d4ea3359b Mon Sep 17 00:00:00 2001 From: sjing Date: Tue, 27 Dec 2011 02:19:59 +0000 Subject: [PATCH] fix for bug 3465128, if no service nodes used, do not do doSNcopy2. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11297 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/aixinstall.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/aixinstall.pm b/xCAT-server/lib/xcat/plugins/aixinstall.pm index a71d421f7..6e6571d88 100644 --- a/xCAT-server/lib/xcat/plugins/aixinstall.pm +++ b/xCAT-server/lib/xcat/plugins/aixinstall.pm @@ -8629,6 +8629,11 @@ sub doSNcopy2 } } + unless(scalar @SNlist) + { + return; + } + my $snlist=join(',',@SNlist); # copy the /etc/hosts file all the SNs