cli: Fix default CPU argument

By default, and in order to avoid falling into the legacy CLI usage, the
CPU argument should at least include "boot=" to define the number of
CPUs.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf 2019-12-10 13:42:51 +01:00 committed by Rob Bradford
parent 59ae01ff71
commit f7c215d92d

View File

@ -79,7 +79,7 @@ fn main() {
}
}
let default_vcpus = format! {"{}", config::DEFAULT_VCPUS};
let default_vcpus = format! {"boot={}", config::DEFAULT_VCPUS};
let default_memory = format! {"size={}M", config::DEFAULT_MEMORY_MB};
let default_rng = format! {"src={}", config::DEFAULT_RNG_SOURCE};