distroinstaller: Fix volume upload with latest libvirt bindings (bz 1058720)

This commit is contained in:
Cole Robinson
2014-01-28 09:52:39 -05:00
parent 169ae1203d
commit bd15cd3d6e

View File

@@ -130,7 +130,7 @@ def _upload_file(conn, meter, destpool, src):
offset = 0
length = size
flags = 0
stream.upload(vol, offset, length, flags)
vol.upload(stream, offset, length, flags)
# Open source file
fileobj = file(src, "r")