Method
vm_add_device
(&self, device_config: String)
Source from the content-addressed store, hash-verified
| 130 | } |
| 131 | |
| 132 | async fn vm_add_device(&self, device_config: String) -> Result<Optional<String>> { |
| 133 | let device_config = serde_json::from_str(&device_config).map_err(api_error)?; |
| 134 | self.vm_action(&VmAddDevice, device_config).await |
| 135 | } |
| 136 | |
| 137 | async fn vm_add_disk(&self, disk_config: String) -> Result<Optional<String>> { |
| 138 | let disk_config = serde_json::from_str(&disk_config).map_err(api_error)?; |
Tested by
no test coverage detected