use the getIPaddress() in FSPUtils.pm

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@12453 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jjhua 2012-05-02 06:26:43 +00:00
parent 80d2041941
commit b9ab9c9ab0

View File

@ -864,7 +864,7 @@ sub fsp_api_passwd {
#$fsp_ip = xCAT::Utils::get_hdwr_ip($fsp_name);
#$fsp_ip = xCAT::Utils::getNodeIPaddress($fsp_name);
#$fsp_ip = xCAT::Utils::getIPaddress($fsp_name);
$fsp_ip = getIPaddress($request, $attrs, $fsp_name );
$fsp_ip = xCAT::FSPUtils::getIPaddress($request, $$attrs[4], $fsp_name );
if(!defined($fsp_ip) or ($fsp_ip == -3)) {
$res = "Failed to get IP address for $fsp_name.";
return ([$node_name, $res, -1]);