From 8e4f81a2b3f8b70b1c2bfbd2355b4fdb7c5d108c Mon Sep 17 00:00:00 2001 From: wanghuaz Date: Tue, 22 Jun 2010 07:06:38 +0000 Subject: [PATCH] Fixed the issue that --makedhcp option is not working in lsslp git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6572 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/lsslp.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/lsslp.pm b/xCAT-server/lib/xcat/plugins/lsslp.pm index 2cec35ace..55fe5187f 100644 --- a/xCAT-server/lib/xcat/plugins/lsslp.pm +++ b/xCAT-server/lib/xcat/plugins/lsslp.pm @@ -1906,9 +1906,7 @@ sub do_makedhcp { $string = "Adding following nodes to dhcp server: \n$node\n"; send_msg( $request, 0, $string ); - my $outref = []; - @$outref = `makedhcp $node 2>&1`; - my $line = join("\n", @$outref); + my $line = `/opt/xcat/sbin/makedhcp $node 2>&1`; send_msg( $request, 0, $line); send_msg( $request, 0, "\nMakedhcp finished.\n" );