use xCAT::Utils::getNodeIPaddress Function to get ip

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6849 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jjhua 2010-07-25 04:20:15 +00:00
parent 3e371cad5d
commit 1ee6515cf3

View File

@ -118,7 +118,7 @@ sub fsp_api_action {
# $res = "Failed to get the $fsp_name\'s ip";
# return ([$node_name, $res, -1]);
#}
$fsp_ip = getNodeIPaddress( $fsp_name );
$fsp_ip = xCAT::Utils::getNodeIPaddress( $fsp_name );
if(!defined($fsp_ip)) {
$res = "Failed to get the $fsp_name\'s ip";
return ([$node_name, $res, -1]);