[et-mgmt-tools] [patch 3/4] Remove duplicate call to FullVirtGuest() constructor

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Simple patch which makes use of the fact passing arch=None to the
FullVirtGuest() constructor is perfectly valid. Remove one of the
calls to the constructor.

Signed-off-by: Mark McLoughlin <markmc@xxxxxxxxxx>

Index: virtinst--devel/virt-install
===================================================================
--- virtinst--devel.orig/virt-install
+++ virtinst--devel/virt-install
@@ -525,10 +525,7 @@ def main():
                 type = "kqemu"
 
     if hvm:
-        if options.arch is None:
-            guest = virtinst.FullVirtGuest(connection=conn, type=type)
-        else:
-            guest = virtinst.FullVirtGuest(connection=conn, type=type, arch=options.arch)
+        guest = virtinst.FullVirtGuest(connection=conn, type=type, arch=options.arch)
     else:
         guest = virtinst.ParaVirtGuest(connection=conn, type=type)
 

-- 


[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux