ee5c657
From: Cole Robinson <crobinso@redhat.com>
ee5c657
Date: Wed, 2 Nov 2016 10:27:14 -0400
ee5c657
Subject: [PATCH virt-manager] virt-install: Fix error checking extra_args
ee5c657
ee5c657
Later bits in the code that want to warn based on extra_args content
ee5c657
don't handle the None case. Be consistent and convert it to a list
ee5c657
everywhere.
ee5c657
ee5c657
Mentioned at https://bugzilla.redhat.com/show_bug.cgi?id=1376547#c9
ee5c657
ee5c657
(cherry picked from commit 7962672c713cf6d35e770f0d00068dee707b6ec9)
ee5c657
---
ee5c657
 virt-install | 3 ++-
ee5c657
 1 file changed, 2 insertions(+), 1 deletion(-)
ee5c657
ee5c657
diff --git a/virt-install b/virt-install
ee5c657
index 817f4b3..5a4080f 100755
ee5c657
--- a/virt-install
ee5c657
+++ b/virt-install
ee5c657
@@ -595,7 +595,8 @@ def build_guest_instance(conn, options):
ee5c657
     convert_old_os_options(options)
ee5c657
 
ee5c657
     # non-xml install options
ee5c657
-    guest.installer.extraargs = options.extra_args or []
ee5c657
+    options.extra_args = options.extra_args or []
ee5c657
+    guest.installer.extraargs = options.extra_args
ee5c657
     guest.installer.initrd_injections = options.initrd_inject
ee5c657
     guest.autostart = options.autostart
ee5c657