From f6907796af76db8a2ef4fc38a8e7479448e9bd09 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Mon, 6 May 2013 15:25:50 +0000 Subject: [PATCH] Fix blade to once again work correctly with bladecenter git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16188 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/blade.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/blade.pm b/xCAT-server/lib/xcat/plugins/blade.pm index 896072ef7..2360c2f6d 100644 --- a/xCAT-server/lib/xcat/plugins/blade.pm +++ b/xCAT-server/lib/xcat/plugins/blade.pm @@ -428,10 +428,10 @@ sub eventlog { #Tried various optimizations, but MM seems not to do bulk-request my $matchstring; if ($slot > 0) { #$matchstring=sprintf("BLADE_%02d",$slot); - $matchstring=sprintf("NODE_%02d",$slot); + $matchstring=sprintf("(NODE_%02d|BLADE_%02d)",$slot,$slot); } else { #$matchstring="^(?!BLADE).*"; - $matchstring="^(?!NODE).*"; + $matchstring="^(?!(NODE|BLADE)).*"; } if ($source =~ m/$matchstring$/i) { #MM guys changed their minds on capitalization if (defined($order)) { @@ -446,7 +446,7 @@ sub eventlog { #Tried various optimizations, but MM seems not to do bulk-request } else { foreach (@moreslots) { #$matchstring=sprintf("BLADE_%02d",$_); - $matchstring=sprintf("NODE_%02d",$_); + $matchstring=sprintf("(NODE_%02d|BLADE_%02d",$_,$_); if ($source =~ m/$matchstring$/i) { #MM guys changed their minds on capitalization if (defined($order)) { $numentries++;