From fc10f24025896a321705c1a58fa6e9d43aac95f0 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Mon, 8 Mar 2010 22:43:10 +0000 Subject: [PATCH] -Fix bug where an empty blade bay could confuse the discovery process. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5411 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/blade.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/blade.pm b/xCAT-server/lib/xcat/plugins/blade.pm index 628513a9f..bf7a36a47 100644 --- a/xCAT-server/lib/xcat/plugins/blade.pm +++ b/xCAT-server/lib/xcat/plugins/blade.pm @@ -209,6 +209,8 @@ sub fillresps { my $response = shift; my $mac = $response->{node}->[0]->{data}->[0]->{contents}->[0]; my $node = $response->{node}->[0]->{name}->[0]; + unless ($mac) { return; } #The event that a bay is empty should not confuse +#xcat into having an odd mapping $mac = uc($mac); #Make sure it is uppercase, the MM people seem to change their mind on this.. if ($mac =~ /->/) { #The new and 'improved' syntax for pBlades $mac =~ /(\w+):(\w+):(\w+):(\w+):(\w+):(\w+)\s*->\s*(\w+):(\w+):(\w+):(\w+):(\w+):(\w+)/;