From 3e4d70383a28e781f1d2afec42f12c22a49cff7e Mon Sep 17 00:00:00 2001 From: Casandra Qiu Date: Wed, 31 Jan 2018 12:11:08 -0500 Subject: [PATCH] return sub routine if ip is not reachable --- xCAT-server/lib/xcat/plugins/pdu.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/xCAT-server/lib/xcat/plugins/pdu.pm b/xCAT-server/lib/xcat/plugins/pdu.pm index f62121089..d2a94ca3f 100644 --- a/xCAT-server/lib/xcat/plugins/pdu.pm +++ b/xCAT-server/lib/xcat/plugins/pdu.pm @@ -1406,6 +1406,7 @@ sub netcfg_for_irpdu { $login_ip = $discover_ip; } else { xCAT::SvrUtils::sendmsg(" is not reachable", $callback,$pdu); + return; } foreach my $cmd (@exargs) {