(template: &SandboxTemplate)
| 3155 | |
| 3156 | #[allow(clippy::result_large_err)] |
| 3157 | fn validate_vm_sandbox_template(template: &SandboxTemplate) -> Result<(), Status> { |
| 3158 | if !template.agent_socket_path.is_empty() { |
| 3159 | return Err(Status::failed_precondition( |
| 3160 | "vm sandboxes do not support template.agent_socket_path", |
| 3161 | )); |
| 3162 | } |
| 3163 | if template.platform_config.is_some() { |
| 3164 | return Err(Status::failed_precondition( |
| 3165 | "vm sandboxes do not support template.platform_config", |
| 3166 | )); |
| 3167 | } |
| 3168 | Ok(()) |
| 3169 | } |
| 3170 | |
| 3171 | #[allow(clippy::result_large_err)] |
| 3172 | fn validate_gpu_request(sandbox: &Sandbox, gpu_enabled: bool) -> Result<(), Status> { |
no test coverage detected