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'}}) {