virtinst/cli: set default value for disk sparse to "yes"

Commit 41a84bae9 reworked CLI parsing, but lost the default value disk
sparse option.  Man page also states that the default value is "yes".

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1392990

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
Pavel Hrdina 2017-01-16 17:08:28 +01:00
parent 45a3d50668
commit b1c0a1c2d9

View File

@ -1929,7 +1929,7 @@ class ParserDisk(VirtCLIParser):
volname = self.optdict.pop("vol", None)
size = parse_size(self.optdict.pop("size", None))
fmt = self.optdict.pop("format", None)
sparse = _on_off_convert("sparse", self.optdict.pop("sparse", None))
sparse = _on_off_convert("sparse", self.optdict.pop("sparse", "yes"))
convert_perms(self.optdict.pop("perms", None))
has_type_volume = ("source_pool" in self.optdict or
"source_volume" in self.optdict)