From 1e833c00a2c3ac7e72544ce44e7567d124d25665 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Wed, 19 May 2010 20:59:30 +0000 Subject: [PATCH] -Escape special character in yaboot.conf generator git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6179 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 91a6331fd..c3361babb 100644 --- a/xCAT-server/lib/xcat/plugins/yaboot.pm +++ b/xCAT-server/lib/xcat/plugins/yaboot.pm @@ -165,7 +165,7 @@ sub setstate { #special case for sles 11 my $mac = lc($machash{$node}->[0]->{mac}); $mac =~ s/!.*//; - $mac =~ s/|.*//; + $mac =~ s/\|.*//; if (! (grep /\:/, $mac) ) { $mac =~ s/(..)(..)(..)(..)(..)(..)/$1:$2:$3:$4:$5:$6/; }