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 <wllenyj@linux.alibaba.com>
This commit is contained in:
wllenyj
2021-11-15 11:32:59 +08:00
parent 0a1d7893ff
commit 429ab089f7

View File

@@ -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);