# 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