From 27a31e90317cdce695e93036f27ad3df8920b2e7 Mon Sep 17 00:00:00 2001 From: xq2005 Date: Fri, 30 Nov 2012 08:22:56 +0000 Subject: [PATCH] Using an array as a reference git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14490 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/yaboot.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/yaboot.pm b/xCAT-server/lib/xcat/plugins/yaboot.pm index 03c35d5f5..ea6b16459 100644 --- a/xCAT-server/lib/xcat/plugins/yaboot.pm +++ b/xCAT-server/lib/xcat/plugins/yaboot.pm @@ -175,7 +175,7 @@ sub setstate { } if ($kern and $kern->{kcmdline}) { my $kcmdline = $kern->{kcmdline}; - $kcmdline =~ s/(.*ifname=.*):@macs->[0].*( netdev.*)/$1:$mac$2/g; + $kcmdline =~ s/(.*ifname=.*):@macs[0].*( netdev.*)/$1:$mac$2/g; print $pcfg "\tappend=\"".$kcmdline."\"\n"; } close($pcfg);