mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-04-04 11:03:52 +00:00
Merge pull request #12767 from nubificus/fix/fc-rs
runtime-rs: Fix FC API fields
This commit is contained in:
@@ -111,7 +111,7 @@ impl FcInner {
|
||||
|
||||
let body_config: String = json!({
|
||||
"mem_size_mib": self.config.memory_info.default_memory,
|
||||
"vcpu_count": self.config.cpu_info.default_vcpus,
|
||||
"vcpu_count": self.config.cpu_info.default_vcpus.ceil() as u8,
|
||||
})
|
||||
.to_string();
|
||||
let body_kernel: String = json!({
|
||||
@@ -191,13 +191,10 @@ impl FcInner {
|
||||
.disk_rate_limiter_ops_one_time_burst,
|
||||
);
|
||||
|
||||
let rate_limiter = serde_json::to_string(&block_rate_limit)
|
||||
.with_context(|| format!("serde {block_rate_limit:?} to json"))?;
|
||||
|
||||
let body: String = json!({
|
||||
"drive_id": format!("drive{drive_id}"),
|
||||
"path_on_host": new_drive_path,
|
||||
"rate_limiter": rate_limiter,
|
||||
"rate_limiter": block_rate_limit,
|
||||
})
|
||||
.to_string();
|
||||
self.request_with_retry(
|
||||
|
||||
Reference in New Issue
Block a user