Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Fedora/Linux Management Tools (http://www.linux-archive.org/fedora-linux-management-tools/)
-   -   Fix virt-install of PV Solaris without extra args (http://www.linux-archive.org/fedora-linux-management-tools/227655-fix-virt-install-pv-solaris-without-extra-args.html)

01-14-2009 03:29 PM

Fix virt-install of PV Solaris without extra args
 
# 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']:

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


All times are GMT. The time now is 12:46 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.