From: Boris Fiuczynski <fiu...@linux.vnet.ibm.com>

Variable ret is used before assignment.

Signed-off-by: Boris Fiuczynski <fiu...@linux.vnet.ibm.com>
Signed-off-by: Marc Hartmayer <mhart...@linux.vnet.ibm.com>
---
 libvirt-override-virStream.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libvirt-override-virStream.py b/libvirt-override-virStream.py
index 358a5f6a93df..901c2e6af94e 100644
--- a/libvirt-override-virStream.py
+++ b/libvirt-override-virStream.py
@@ -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
-- 
2.13.4

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to