From 8686e4c4a5e7928738ff68090bf2bde4b591d2f8 Mon Sep 17 00:00:00 2001 From: ligc Date: Tue, 14 Sep 2010 13:03:54 +0000 Subject: [PATCH] fix the rmdef,chdef,mkdef return code problem, found by automation bucket git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7447 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/DBobjectdefs.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm b/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm index 79cf4dc8d..091c2e99f 100644 --- a/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm +++ b/xCAT-server/lib/xcat/plugins/DBobjectdefs.pm @@ -156,15 +156,15 @@ sub process_request ($ret, $msg) = &defrm; } - my $rsp; + my $rsp; if ($msg) { $rsp->{data}->[0] = $msg; - $::callback->($rsp); } - if ($ret > 0) { - $rsp->{errorcode}->[0] = $ret; - } + if ($ret > 0) { + $rsp->{errorcode}->[0] = $ret; + } + $::callback->($rsp); } #----------------------------------------------------------------------------