2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 17:23:08 +00:00

modify write file error

This commit is contained in:
huweihua 2015-11-27 03:04:41 -05:00
parent b0bf7931ac
commit c8685b21ab

View File

@ -188,7 +188,7 @@ sub handle_findadapter{
$content .= "vendor=".$request->{nic}->[$i]->{vendor}->[0]."|";
}
if(exists($request->{nic}->[$i]->{model})){
$content .= "modle=".$request->{nic}->[$i]->{model}->[0];
$content .= "model=".$request->{nic}->[$i]->{model}->[0];
}
$content .= "\n";
}
@ -198,7 +198,7 @@ sub handle_findadapter{
if(!open($fd,">$inforootdir/$hostname.info")) {
xCAT::MsgUtils->trace($VERBOSE,"d","findadapter: can't open $inforootdir/$hostname.info to record adapter info");
}else{
print $fd, "$content";
print $fd "$content";
close($fd);
}