From 6ebfd712bb3e8b45e0658c196395575a24d3adea Mon Sep 17 00:00:00 2001 From: chenglch Date: Tue, 3 Jan 2017 16:10:24 +0800 Subject: [PATCH] return error code when updatenode command completed close-issue: #2281 --- xCAT-server/lib/xcat/plugins/updatenode.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/updatenode.pm b/xCAT-server/lib/xcat/plugins/updatenode.pm index 2b9c9e6af..a81388bbc 100644 --- a/xCAT-server/lib/xcat/plugins/updatenode.pm +++ b/xCAT-server/lib/xcat/plugins/updatenode.pm @@ -2252,6 +2252,9 @@ s/Running of postscripts has completed/Redeliver security files has completed/; } } } + if($response->{errorcode}) { + $rsp->{errorcode} = $response->{errorcode}; + } $CALLBACK->($rsp); }