virsh_ver.splitlines()[3].split("hypervisor")[1]
> - hyp_ver = hyp_ver.split(": ")[1]
> + tok = virsh_ver.splitlines()[3].split("hypervisor")
> + if len(tok) > 1:
> + tok = tok[1].split(": ")
> + if len(tok) > 1:
> + hyp_ver = tok[1]
>
> return libvirt_ver, hyp_ver
>
> +1 from me.
It's better to print out error log if len(tok)<= 1.
I can resend with some additional logging.
--
Kaitlin Rupert
IBM Linux Technology Center
kaitlin(a)linux.vnet.ibm.com