[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[et-mgmt-tools] [PATCH] Fix virt-install of PV Solaris without extra args
- From: john levon sun com
- To: et-mgmt-tools redhat com
- Subject: [et-mgmt-tools] [PATCH] Fix virt-install of PV Solaris without extra args
- Date: Wed, 14 Jan 2009 08:29:48 -0800
# HG changeset patch
# User john levon 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 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']:
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]