From 80d2041941f88bd9080e0e95e9c4e156e6f1db8f Mon Sep 17 00:00:00 2001 From: jjhua Date: Wed, 2 May 2012 06:23:43 +0000 Subject: [PATCH] use the getIPaddress() in FSPUtils.pm git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@12452 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/PPCenergy.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perl-xCAT/xCAT/PPCenergy.pm b/perl-xCAT/xCAT/PPCenergy.pm index 1691f2738..d76461993 100644 --- a/perl-xCAT/xCAT/PPCenergy.pm +++ b/perl-xCAT/xCAT/PPCenergy.pm @@ -251,7 +251,7 @@ sub renergy { return ([[$node, "Failed to get the FSPs for the cec $hcphost.", -1]]); } #my $hcp_ip = xCAT::Utils::getNodeIPaddress($hcphost); - my $hcp_ip = xCAT::Utils::getIPaddress($hcphost); + my $hcp_ip = xCAT::FSPUtils::getIPaddress($request, $hw_type, $hcphost); if (!defined($hcp_ip) or ($hcp_ip == -3)) { return ([[$node, "Failed to get IP address for $hcphost.", -1]]); }