Re: [libvirt] [PATCH] python: return dictionay without value in case of no blockjob

2013-08-20 Thread Eric Blake
On 07/15/2013 04:13 AM, Guannan Ren wrote: On 07/13/2013 01:36 AM, Michal Privoznik wrote: On 17.05.2013 08:30, Guannan Ren wrote: s/dictionay/dictionary/ in $SUBJ Currently, when there is no blockjob, dom.blockJobInfo('vda') still reports error because it didn't distinguish return value 0

Re: [libvirt] [PATCH] python: return dictionay without value in case of no blockjob

2013-07-15 Thread Guannan Ren
On 07/13/2013 01:36 AM, Michal Privoznik wrote: On 17.05.2013 08:30, Guannan Ren wrote: s/dictionay/dictionary/ in $SUBJ Currently, when there is no blockjob, dom.blockJobInfo('vda') still reports error because it didn't distinguish return value 0 from -1. s/didn't/doesn't/

Re: [libvirt] [PATCH] python: return dictionay without value in case of no blockjob

2013-07-12 Thread Michal Privoznik
On 17.05.2013 08:30, Guannan Ren wrote: s/dictionay/dictionary/ in $SUBJ Currently, when there is no blockjob, dom.blockJobInfo('vda') still reports error because it didn't distinguish return value 0 from -1. s/didn't/doesn't/ libvirt.libvirtError: virDomainGetBlockJobInfo() failed