From 429ab089f77fe7f97314eb42479c3ee479103e72 Mon Sep 17 00:00:00 2001 From: wllenyj Date: Mon, 15 Nov 2021 11:32:59 +0800 Subject: [PATCH] agent-ctl: fix complie error Since the `utils::get_option` interface is modified, PullImage needs to adapt to this modification in CCv0 branch. Fixes #3044 Signed-off-by: wllenyj --- tools/agent-ctl/src/client.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/agent-ctl/src/client.rs b/tools/agent-ctl/src/client.rs index 551bf9c46c..6456c8ec39 100644 --- a/tools/agent-ctl/src/client.rs +++ b/tools/agent-ctl/src/client.rs @@ -2067,9 +2067,9 @@ fn agent_cmd_pull_image( let ctx = clone_context(ctx); - let image = utils::get_option("image", options, args); - let cid = utils::get_option("cid", options, args); - let source_creds = utils::get_option("source_creds", options, args); + let image = utils::get_option("image", options, args)?; + let cid = utils::get_option("cid", options, args)?; + let source_creds = utils::get_option("source_creds", options, args)?; req.set_image(image); req.set_container_id(cid);