From 3faab403aaac6285f95d5b0a248d2bec1cf58b35 Mon Sep 17 00:00:00 2001 From: daniceexi Date: Fri, 12 Apr 2013 08:09:37 +0000 Subject: [PATCH] Update the code that get the correct switch infor for the install nic git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15964 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/nodediscover.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/nodediscover.pm b/xCAT-server/lib/xcat/plugins/nodediscover.pm index 393b9dffd..04fbee44a 100644 --- a/xCAT-server/lib/xcat/plugins/nodediscover.pm +++ b/xCAT-server/lib/xcat/plugins/nodediscover.pm @@ -283,7 +283,7 @@ sub process_request { unless ($firstmac) { $firstmac = $mac; } - if ($host eq $node) { + if (!$host || $host eq $node) { $firstmac = $mac; last; }