(&self, id: &str)
| 994 | } |
| 995 | |
| 996 | pub(crate) fn sync_dynamic_config(&self, id: &str) -> Result<()> { |
| 997 | let work_dir = self.work_dir(id); |
| 998 | let shared_dir = self.shared_dir(id); |
| 999 | let manifest = work_dir.manifest().context("Failed to read manifest")?; |
| 1000 | let cfg = &self.config; |
| 1001 | let sys_config_str = make_sys_config(cfg, &manifest)?; |
| 1002 | fs::write(shared_dir.join(SYS_CONFIG), sys_config_str) |
| 1003 | .context("Failed to write vm config")?; |
| 1004 | Ok(()) |
| 1005 | } |
| 1006 | |
| 1007 | pub(crate) fn kms_client(&self) -> Result<KmsClient<RaClient>> { |
| 1008 | if self.config.kms_url.is_empty() { |
no test coverage detected