From b7d19156987b9f98d332a0658c23c06be9d73ada Mon Sep 17 00:00:00 2001 From: daniceexi Date: Fri, 12 Apr 2013 08:11:56 +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/branches/2.8@15967 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; }