Re: [PATCH] details: fix exception when current vcpus is equal to max vcpus

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Giuseppe Scrivano <gscrivan@xxxxxxxxxx> writes:

> The "current" XML attribute of vcpu is optional and assumed to be
> equal to the maximum number of vcpus when not specified.
>
> It fixes this exception:
>
> Traceback (most recent call last):
>   File "virt-manager/virtManager/details.py", line 1180, in
>   hw_selected
>     self.refresh_config_cpu()
>   File "virt-manager/virtManager/details.py", line 2742, in
>   refresh_config_cpu
>     self._refresh_cpu_count()
>   File "virt-manager/virtManager/details.py", line 2638, in
>   _refresh_cpu_count
>     curvcpus = self.vm.vcpu_count()
>   File "virt-manager/virtManager/domain.py", line 1039, in vcpu_count
>     return int(self.get_xmlobj().curvcpus)
> TypeError: int() argument must be a string or a number, not 'NoneType'
>
> Signed-off-by: Giuseppe Scrivano <gscrivan@xxxxxxxxxx>
> ---

NAK myself.

It seems to be fixed by the patch "details: Fix processor tab display
for some LXC guests" that Martin sent few days ago, it is still pending
on the list and I didn't check when I've firstly seen this problem.

Giuseppe

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list




[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux