Re: [PATCH] virt-manager: fix errorpath in domain.py

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

 



Guido Guenther wrote:
> Hi,
> trivial patch against version 0.5.2 for fixing the error path, otherwise
> libvirtError is unknown to the interpreter. Please apply:
> 
> diff --git a/src/virtManager/domain.py b/src/virtManager/domain.py
> index 513f857..323a478 100644
> --- a/src/virtManager/domain.py
> +++ b/src/virtManager/domain.py
> @@ -681,7 +681,7 @@ class vmmDomain(gobject.GObject):
>          try:
>              if self.is_active():
>                  self.vm.attachDevice(xml)
> -        except libvirtError, e:
> +        except libvirt.libvirtError, e:
>              device_exception = str(e)
>  
>          index = vmxml.find("</devices>")
> @@ -703,7 +703,7 @@ class vmmDomain(gobject.GObject):
>          if self.is_active():
>              try:
>                  self.vm.detachDevice(dev_xml)
> -            except libvirtError, e:
> +            except libvirt.libvirtError, e:
>                  device_exception = str(e)
>  
>          # then the stored XML
> 
> Cheers,
>  -- Guido
> 

Hi Guido,

This was actually already fixed in October:

http://hg.et.redhat.com/virt/applications/virt-manager--devel?cs=58c46220f2df

We haven't pushed any updates yet so it is not in Fedora. If you want to
submit patches it is best to base them on upstream. You can find info on this at:

http://virt-manager.et.redhat.com/scmrepo.html

Thanks,
Cole

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

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux