From 7d9bdf7b0112e6860c42f7277e77dd735d85241f Mon Sep 17 00:00:00 2001 From: "fupan.lfp" Date: Tue, 31 Mar 2020 17:19:40 +0800 Subject: [PATCH] grpc: Fix the issue passing wrong exec_id to exec process This issue was brought accidently by PR #174, fix this issue. Signed-off-by: fupan.lfp --- src/agent/src/grpc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agent/src/grpc.rs b/src/agent/src/grpc.rs index f1c4dbd167..9b724a1d25 100644 --- a/src/agent/src/grpc.rs +++ b/src/agent/src/grpc.rs @@ -284,7 +284,7 @@ impl agentService { let pipe_size = AGENT_CONFIG.read().unwrap().container_pipe_size; let ocip = rustjail::process_grpc_to_oci(process); - let p = Process::new(&sl!(), &ocip, cid.as_str(), false, pipe_size)?; + let p = Process::new(&sl!(), &ocip, exec_id.as_str(), false, pipe_size)?; let ctr = match sandbox.get_container(cid.as_str()) { Some(v) => v,