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 <clalancette@gmail.com>
parent f173625e
......@@ -2882,7 +2882,7 @@ static VALUE libvirt_domain_block_resize(int argc, VALUE *argv, VALUE d)
ruby_libvirt_generate_call_nil(virDomainBlockResize,
ruby_libvirt_connect_get(d),
ruby_libvirt_domain_get(d),
StringValueCStr(size), NUM2ULL(size),
StringValueCStr(disk), NUM2ULL(size),
ruby_libvirt_value_to_uint(flags));
}
#endif
......
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