Output the makedhcp errors in lsslp

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6571 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
wanghuaz 2010-06-22 03:04:56 +00:00
parent e1fbb38a73
commit 5e5f2d5ac8

View File

@ -1903,10 +1903,13 @@ sub do_makedhcp {
my $node = join ",", @nodes;
$string = "Add following nodes to dhcp server: \n$node\n";
$string = "Adding following nodes to dhcp server: \n$node\n";
send_msg( $request, 0, $string );
`makedhcp $node`;
my $outref = [];
@$outref = `makedhcp $node 2>&1`;
my $line = join("\n", @$outref);
send_msg( $request, 0, $line);
send_msg( $request, 0, "\nMakedhcp finished.\n" );