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

Re: [virt-tools-list] [PATCH] details: fix exception when current vcpus is equal to max vcpus



Giuseppe Scrivano <gscrivan redhat com> 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 redhat com>
> ---

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


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