[PATCH] Fix virt-install of PV Solaris without extra args

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

 



# HG changeset patch
# User john.levon@xxxxxxx
# Date 1231948587 28800
# Node ID 94c1faae928b58e7b057a51091691bd998492838
# Parent  b990f35e67184c7730fd27e6fc7b73fa4322e32d
Fix virt-install of PV Solaris without extra args

Signed-off-by: John Levon <john.levon@xxxxxxx>

diff --git a/virtinst/OSDistro.py b/virtinst/OSDistro.py
--- a/virtinst/OSDistro.py
+++ b/virtinst/OSDistro.py
@@ -792,11 +792,12 @@ class SolarisDistro(SunDistro):
         # Yuck. Non-default netmasks require this option to be passed.
         # It's distinctly not-trivial to work out the netmask to be used
         # automatically.
-        for karg in kargs.split():
-            if karg.startswith('subnet-mask'):
-                netmask = karg.split('=')[1]
-            else:
-                args += [ kargs ]
+        if kargs:
+            for karg in kargs.split():
+                if karg.startswith('subnet-mask'):
+                    netmask = karg.split('=')[1]
+                else:
+                    args += [ kargs ]
 
         iargs = ''
         if not guest.graphics['enabled']:

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/et-mgmt-tools

[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