From 1c0df670af2fc54358b6f344b31e1e548fe9b62d Mon Sep 17 00:00:00 2001 From: "James O. D. Hunt" Date: Thu, 11 Jan 2024 09:58:09 +0000 Subject: [PATCH] runtime-rs: ch: Add minimal implementation of hypervisor metrics method Remove the `todo!()` macro which would cause a runtime crash and replace with a implementation that returns an error as a stop-gap until #8800 is implemented. Fixes: #8785. Signed-off-by: James O. D. Hunt --- src/runtime-rs/crates/hypervisor/src/ch/inner_hypervisor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime-rs/crates/hypervisor/src/ch/inner_hypervisor.rs b/src/runtime-rs/crates/hypervisor/src/ch/inner_hypervisor.rs index dcc61afa1e..d9a8fb06e5 100644 --- a/src/runtime-rs/crates/hypervisor/src/ch/inner_hypervisor.rs +++ b/src/runtime-rs/crates/hypervisor/src/ch/inner_hypervisor.rs @@ -741,7 +741,7 @@ impl CloudHypervisorInner { } pub(crate) async fn get_hypervisor_metrics(&self) -> Result { - todo!() + Err(anyhow!("CH hypervisor metrics not implemented - see https://github.com/kata-containers/kata-containers/issues/8800")) } pub(crate) fn set_capabilities(&mut self, _flag: CapabilityBits) {