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

john.levon at sun.com john.levon at sun.com
Wed Jan 14 16:29:48 UTC 2009


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

Signed-off-by: John Levon <john.levon at sun.com>

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']:




More information about the et-mgmt-tools mailing list