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); } #----------------------------------------------------------------------------