vmm: api: Make MemoryConfig default match between CLI and HTTP API

Just making sure we have a serde default for the field "file" since it
is not a required field in the OpenAPI definition.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf 2019-12-10 14:43:26 +01:00 committed by Rob Bradford
parent 5a72225856
commit cc08c44cb9

View File

@ -196,6 +196,7 @@ impl Default for CpusConfig {
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct MemoryConfig {
pub size: u64,
#[serde(default)]
pub file: Option<PathBuf>,
#[serde(default)]
pub mergeable: bool,