From f7b2205e9291d0ab2e57fe913e255d25053bcc84 Mon Sep 17 00:00:00 2001 From: daniceexi Date: Mon, 8 Apr 2013 08:37:01 +0000 Subject: [PATCH] support the regular expression in the hosts table git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15874 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/seqdiscovery.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/seqdiscovery.pm b/xCAT-server/lib/xcat/plugins/seqdiscovery.pm index 54d6dbad3..50249fecb 100644 --- a/xCAT-server/lib/xcat/plugins/seqdiscovery.pm +++ b/xCAT-server/lib/xcat/plugins/seqdiscovery.pm @@ -79,7 +79,7 @@ sub findme { last; } } - + unless ($mac) { xCAT::MsgUtils->message("S", "Discovery Error: Could not find the mac of the $ip."); return; @@ -917,7 +917,7 @@ sub getfreeips () { } } - my @hostsent = $hoststb->getAllAttribs('node', 'ip'); + my @hostsent = $hoststb->getAllNodeAttribs(['node', 'ip']); my %usedips = (); foreach my $host (@hostsent) { if (defined ($host->{'ip'}) && !$predefips{$host->{'ip'}}) {