From a337c4744539590b98c4e377b5b12334edff520e Mon Sep 17 00:00:00 2001
From: zhongtao <zhongtao17@huawei.com>
Date: Thu, 18 May 2023 19:10:13 +0800
Subject: [PATCH 72/79] restore execSync return value

Signed-off-by: zhongtao <zhongtao17@huawei.com>
---
 src/daemon/entry/connect/grpc/runtime_runtime_service.cc | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/src/daemon/entry/connect/grpc/runtime_runtime_service.cc b/src/daemon/entry/connect/grpc/runtime_runtime_service.cc
index 4cc5a4ee..451eeeef 100644
--- a/src/daemon/entry/connect/grpc/runtime_runtime_service.cc
+++ b/src/daemon/entry/connect/grpc/runtime_runtime_service.cc
@@ -289,13 +289,6 @@ grpc::Status RuntimeRuntimeServiceImpl::ExecSync(grpc::ServerContext *context,
         return grpc::Status(grpc::StatusCode::UNKNOWN, error.GetMessage());
     }
 
-    if (reply->exit_code() != 0) {
-        ERROR("Object: CRI, Type: Sync exec in container: %s with exit code: %d", request->container_id().c_str(),
-              reply->exit_code());
-        error.SetError(reply->stderr());
-        return grpc::Status(grpc::StatusCode::UNKNOWN, error.GetMessage());
-    }
-
     WARN("Event: {Object: CRI, Type: sync execed Container: %s}", request->container_id().c_str());
 
     return grpc::Status::OK;
-- 
2.25.1

