mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-31 08:28:34 +00:00
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user