users can change the node name on rscan result dialog

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10618 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
xq2005 2011-09-23 06:23:12 +00:00
parent ff714f6861
commit 7c0a57f3a3

View File

@ -1913,6 +1913,9 @@ sub web_addnode{
foreach(@tempArray) {
$temphash{$_} = 1;
}
for (my $i = 0; $i < scalar(@tempArray); $i = $i + 2){
$temphash{$tempArray[$i]} = $tempArray[$i + 1];
}
`rscan $hcpname -z > /tmp/rscanall.tmp`;
#if can not create the rscan result file, error
unless(-e '/tmp/rscanall.tmp'){
@ -1925,7 +1928,7 @@ sub web_addnode{
if ($line =~ /(\S+):$/){
if ($temphash{$1}){
$writeflag = 1;
print OUTPUTFILE $line;
print OUTPUTFILE $temphash{$1} . ":\n";
}
else{
$writeflag = 0;