use the getIPaddress() in FSPUtils instead of Utils.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12721 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		@@ -32,7 +32,7 @@ my %mm_comm_pids;
 | 
			
		||||
my $browser;
 | 
			
		||||
use XML::Simple;
 | 
			
		||||
$XML::Simple::PREFERRED_PARSER='XML::Parser';
 | 
			
		||||
use Data::Dumper;
 | 
			
		||||
#use Data::Dumper;
 | 
			
		||||
use POSIX "WNOHANG";
 | 
			
		||||
use Storable qw(freeze thaw);
 | 
			
		||||
use IO::Select;
 | 
			
		||||
@@ -41,6 +41,7 @@ use Time::HiRes qw(gettimeofday sleep);
 | 
			
		||||
use xCAT::DBobjUtils;
 | 
			
		||||
use Getopt::Long;
 | 
			
		||||
use xCAT::SvrUtils;
 | 
			
		||||
use xCAT::FSPUtils;
 | 
			
		||||
 | 
			
		||||
sub handled_commands {
 | 
			
		||||
  return {
 | 
			
		||||
@@ -4263,7 +4264,9 @@ sub get_blades_for_mpa {
 | 
			
		||||
      } elsif ($att and $att->{parent} and ($att->{parent} ne $mpa)) {
 | 
			
		||||
          next;
 | 
			
		||||
      }
 | 
			
		||||
      my $hcp_ip = xCAT::Utils::getIPaddress($att->{hcp});
 | 
			
		||||
      my $request;
 | 
			
		||||
      my $nodetype = "blade";
 | 
			
		||||
      my $hcp_ip = xCAT::FSPUtils::getIPaddress($request, $nodetype, $att->{hcp});
 | 
			
		||||
      if (!defined($hcp_ip) or ($hcp_ip == -3)) {
 | 
			
		||||
          next;
 | 
			
		||||
      }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user