From 8b28914debc41b660075a566a8b47dbe3a82ea39 Mon Sep 17 00:00:00 2001 From: gryf Date: Sun, 20 Jun 2021 14:30:20 +0200 Subject: [PATCH] Do not overwrite previously set options. If user doesn't provide options from commandline during rebuild, such option will be overwritten by those stored in VM XML, even if user change such option in config file. This commit fixing that. --- box.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/box.py b/box.py index 3ffdcbf..622dd73 100755 --- a/box.py +++ b/box.py @@ -273,7 +273,7 @@ class Config: # the command line vm_info = vbox.get_vm_info() if vbox else {} for attr in self.ATTRS: - val = getattr(args, attr, None) or vm_info.get(attr) + val = getattr(args, attr, None) if not val: continue setattr(self, attr, str(val))