From 151296661c1e0601ea0353a5659523a89306b699 Mon Sep 17 00:00:00 2001 From: jjhua Date: Tue, 15 May 2012 12:54:26 +0000 Subject: [PATCH] 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 --- xCAT-server/lib/xcat/plugins/blade.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/blade.pm b/xCAT-server/lib/xcat/plugins/blade.pm index 7532c446a..9bc316db1 100644 --- a/xCAT-server/lib/xcat/plugins/blade.pm +++ b/xCAT-server/lib/xcat/plugins/blade.pm @@ -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; }