From d056508d71f40d38d9a179f41de73c8f9f91907e Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Sun, 5 Mar 2017 21:18:26 -0500 Subject: [PATCH] cli: --sysinfo: Set type=smbios by default Libvirt requires it, so don't force users to manually specify it if they pass any other --sysinfo params. --- virtinst/cli.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/virtinst/cli.py b/virtinst/cli.py index 0e05e126..255797fc 100644 --- a/virtinst/cli.py +++ b/virtinst/cli.py @@ -1753,6 +1753,10 @@ class ParserSYSInfo(VirtCLIParser): def _parse(self, inst): if self.optstr == "host" or self.optstr == "emulate": self.optdict['type'] = self.optstr + elif self.optstr: + # If any string specified, default to type=smbios otherwise + # libvirt errors. User args can still override this though + self.optdict['type'] = 'smbios' return VirtCLIParser._parse(self, inst)