From 368d0d1e837bf8ef559f86f79607af92e85b1689 Mon Sep 17 00:00:00 2001 From: immarvin Date: Thu, 8 Aug 2013 21:03:39 -0700 Subject: [PATCH] fix defect 3734 makehosts throw exceptions when node ip is not illegal --- xCAT-server/lib/xcat/plugins/hosts.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/hosts.pm b/xCAT-server/lib/xcat/plugins/hosts.pm index d5e100f5b..f3da69d44 100644 --- a/xCAT-server/lib/xcat/plugins/hosts.pm +++ b/xCAT-server/lib/xcat/plugins/hosts.pm @@ -257,7 +257,7 @@ sub add_hosts_content { else { my $rsp; - push @{$rsp->{data}}, "Invalid IP Addr \'$_->{ip}\' for node \'$_->{node}\'."; + push @{$rsp->{data}}, "Invalid IP Addr \'$ref->{ip}\' for node \'$ref->{node}\'."; xCAT::MsgUtils->message("E", $rsp, $callback); } if (defined($ref->{otherinterfaces}))