From bb811495cbf4c57398a0bc68ddceb699701be7fb Mon Sep 17 00:00:00 2001 From: creativezj Date: Wed, 3 Jul 2013 13:42:15 +0000 Subject: [PATCH] fix nodeimport same ip error git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16868 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/profilednodes.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/profilednodes.pm b/xCAT-server/lib/xcat/plugins/profilednodes.pm index 6787536ea..97945787c 100644 --- a/xCAT-server/lib/xcat/plugins/profilednodes.pm +++ b/xCAT-server/lib/xcat/plugins/profilednodes.pm @@ -2144,7 +2144,7 @@ sub validate_node_entry{ if($nic_ips =~ /!/ and $nic_ips !~ /!$/) { @nic_and_ips = split(/!/, $nic_ips); $nic_ip = $nic_and_ips[1]; - if (exists $allips{$node_entry{$_}}){ + if (exists $allips{$nic_ip}){ $errmsg .= "IP address $nic_ip already exists in the database or in the nodeinfo file.\n"; }elsif((xCAT::NetworkUtils->validate_ip($nic_ip))[0]->[0] ){ $errmsg .= "IP address $nic_ip is invalid. You must use a valid IP address.\n";