mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
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:
parent
45a3d50668
commit
b1c0a1c2d9
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user