Re: python-libvirt domain.destroy() doesn't appear to be working for me

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

 



On 8/24/20 11:38 AM, Jeremy Markle wrote:
I was simply following the examples in the python-libvirt repo. If those methods raise exceptions I'll definitely change to try/catch. Thank you. The maintainer of the repo should update the examples and documentation if exceptions are raised by those.


Can you be more specific please? A quick git grep shows only a few cases which don't compare APIs rather than some integer variables:

libvirt-python.git $ git grep -C 3 -e '< 0' --or -e '== 0' -- examples/

And those try/catch statements - in our basic examples we don't do any rollback and simply just let python abort.

Michal




[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux