From 46daf64a9322de5971099a3610407f53130c3a61 Mon Sep 17 00:00:00 2001 From: immarvin Date: Wed, 7 Dec 2016 01:58:29 -0500 Subject: [PATCH] fix issue [DEV] 'makentp -a' always return 1 #2282 --- xCAT-server/lib/xcat/plugins/makentp.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/makentp.pm b/xCAT-server/lib/xcat/plugins/makentp.pm index f2e784751..9f404ae1c 100755 --- a/xCAT-server/lib/xcat/plugins/makentp.pm +++ b/xCAT-server/lib/xcat/plugins/makentp.pm @@ -454,11 +454,12 @@ sub process_request { }, $sub_req, -1, 1 ); + my $retcode=$::RUNCMD_RC; my $msg; foreach my $line (@$ret) { $msg .= "$line\n"; } - send_msg(\%request, 1, "$msg"); + send_msg(\%request, $retcode, "$msg"); } }