(config: &str, fallback_config: &str)
| 129 | } |
| 130 | |
| 131 | fn decode_vm_config_with_fallback(config: &str, fallback_config: &str) -> Result<VmConfig> { |
| 132 | let config = if config.is_empty() { |
| 133 | fallback_config |
| 134 | } else { |
| 135 | config |
| 136 | }; |
| 137 | let config = if config.is_empty() { "{}" } else { config }; |
| 138 | serde_json::from_str(config).context("Failed to parse vm config") |
| 139 | } |
| 140 | |
| 141 | /// Attestation mode |
| 142 | #[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Encode, Decode, Serialize, Deserialize)] |
no test coverage detected