kata-ctl: fix outdated comments

MgmnClient can also tolerate short sandbox id.

Signed-off-by: Liu Bo <liub.liubo@gmail.com>
This commit is contained in:
Liu Bo
2024-12-10 23:51:18 -08:00
parent 7b0c1d0a8c
commit 95fc585103

View File

@@ -358,7 +358,6 @@ fn get_server_socket(sandbox_id: &str) -> anyhow::Result<String> {
}
fn do_run_exec(sandbox_id: &str, dbg_console_vport: u32) -> anyhow::Result<()> {
// sandbox_id MUST be a long ID.
let server_url = get_server_socket(sandbox_id).context("get debug console socket URL")?;
if server_url.is_empty() {
return Err(anyhow!("server url is empty."));