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 <james.o.hunt@intel.com>
This commit is contained in:
James O. D. Hunt
2024-01-11 09:58:09 +00:00
parent f62ec0a7f5
commit 1c0df670af

View File

@@ -741,7 +741,7 @@ impl CloudHypervisorInner {
}
pub(crate) async fn get_hypervisor_metrics(&self) -> Result<String> {
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) {