mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-13 01:40:26 +00:00
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:
@ -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;
|
||||
|
Reference in New Issue
Block a user