From c8685b21ab29ba772ce8f979c6849917e53cef60 Mon Sep 17 00:00:00 2001 From: huweihua Date: Fri, 27 Nov 2015 03:04:41 -0500 Subject: [PATCH] modify write file error --- xCAT-server/lib/xcat/plugins/getadapter.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/getadapter.pm b/xCAT-server/lib/xcat/plugins/getadapter.pm index 2456a699a..6b071cbe2 100644 --- a/xCAT-server/lib/xcat/plugins/getadapter.pm +++ b/xCAT-server/lib/xcat/plugins/getadapter.pm @@ -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); }