1
0
mirror of https://gitlab.com/libvirt/libvirt-python.git synced 2024-10-26 07:55:06 +03:00

libvirt-override.py: fix sparseSendAll

Variable ret is used before assignment.

Signed-off-by: Boris Fiuczynski <fiuczy@linux.vnet.ibm.com>
Signed-off-by: Marc Hartmayer <mhartmay@linux.vnet.ibm.com>
This commit is contained in:
Boris Fiuczynski 2018-05-16 10:24:34 +02:00 committed by Michal Privoznik
parent 318e305512
commit c84192fbd4

View File

@ -258,7 +258,7 @@
got = handler(self, want, opaque)
if type(got) is int and got < 0:
self.abort()
raise RuntimeError("sparseSendAll handler returned %d" % ret)
raise RuntimeError("sparseSendAll handler returned %d" % got)
if not got:
break