From 886bb5145ffc935cd01f95c72c09131399c69c28 Mon Sep 17 00:00:00 2001 From: leiaibj Date: Mon, 5 Nov 2012 03:22:16 +0000 Subject: [PATCH] correct syntax error while calling validate_ip git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14240 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/profilednodes.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/profilednodes.pm b/xCAT-server/lib/xcat/plugins/profilednodes.pm index b6ded7cfc..5dc6c4ef7 100644 --- a/xCAT-server/lib/xcat/plugins/profilednodes.pm +++ b/xCAT-server/lib/xcat/plugins/profilednodes.pm @@ -606,7 +606,7 @@ Usage: if (exists $allips{$args_dict{'ip'}}){ setrsp_errormsg("Specified IP address $args_dict{'ip'} conflicts with IPs in database"); return; - }elsif((xCAT::NetworkUtils->validate_ip($args_dict{'ip'}))[0][0] ){ + }elsif((xCAT::NetworkUtils->validate_ip($args_dict{'ip'}))[0]->[0] ){ setrsp_errormsg("Specified IP address $args_dict{'ip'} is invalid"); return; }elsif(xCAT::NetworkUtils->isReservedIP($args_dict{'ip'})){ @@ -1462,7 +1462,7 @@ sub validate_node_entry{ }elsif ($_ eq "ip"){ if (exists $allips{$node_entry{$_}}){ return "Specified IP address $node_entry{$_} conflicts with IPs in database or hostinfo file"; - }elsif((xCAT::NetworkUtils->validate_ip($node_entry{$_}))[0][0] ){ + }elsif((xCAT::NetworkUtils->validate_ip($node_entry{$_}))[0]->[0] ){ return "Specified IP address $node_entry{$_} is invalid"; }elsif(xCAT::NetworkUtils->isReservedIP($node_entry{$_})){ return "Specified IP address $node_entry{$_} is invalid";