[virt-tools-list] [virt-manager PATCH] domain: invalidate domain caps if machine type is changed

Cole Robinson crobinso at redhat.com
Tue Sep 19 14:17:04 UTC 2017


On 09/19/2017 04:41 AM, Pavel Hrdina wrote:
> This forces to reload domain capabilities.
> 
> Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1461684
> 
> Signed-off-by: Pavel Hrdina <phrdina at redhat.com>
> ---
>  virtManager/domain.py | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/virtManager/domain.py b/virtManager/domain.py
> index da5a7c0f..6fb54bc7 100644
> --- a/virtManager/domain.py
> +++ b/virtManager/domain.py
> @@ -680,6 +680,7 @@ class vmmDomain(vmmLibvirtObject):
>          guest = self._make_xmlobj_to_define()
>          if machine != _SENTINEL:
>              guest.os.machine = machine
> +            self._domain_caps = None
>          if description != _SENTINEL:
>              guest.description = description or None
>          if title != _SENTINEL:
> 

ACK

Thanks,
Cole




More information about the virt-tools-list mailing list