Commit c9cafca7 authored by Marius Rieder's avatar Marius Rieder Committed by Chris Lalancette
Browse files

The first argument passed should be the disk not the size.

Calling block_resize on a Libvirt::Domain object leads to a TypeError.
The reason seems to be that ruby-libvirt tries to convert the size
instead of the disk to a string to pass as the disk parameter.
Signed-off-by: Chris Lalancette's avatarChris Lalancette <>
parent f173625e
......@@ -2882,7 +2882,7 @@ static VALUE libvirt_domain_block_resize(int argc, VALUE *argv, VALUE d)
StringValueCStr(size), NUM2ULL(size),
StringValueCStr(disk), NUM2ULL(size),
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment