Description of problem: Querying for objects in QMF results in spurious objects being returned. For example this code: remote_pool = qmfc.object(:object_id => result.pool) obj_list = qmfc.objects(:object_id => result.pool) puts "obj list returned from object id of remote pool is #{obj_list}" obj_list.each do |obj| puts "obj entry: #{obj}" puts "obj entry id #{obj.object_id}" end produces: obj list returned from object id of remote pool is #<Qmf::ConsoleObject:0x7f24b95af840>#<Qmf::ConsoleObject:0x7f24b95ae710> obj entry: #<Qmf::ConsoleObject:0x7f24b95af840> obj entry id 0-1-1-21-4 obj entry: #<Qmf::ConsoleObject:0x7f24b95ae710> obj entry id 0-1-1-22-4 In addition the "remote_pool" variable will be 'nil' because the object() method expects only a single return value. We are seeing this with other query types as well which return doubles etc. Version-Release number of selected component (if applicable): qmf-0.5.825492-1.fc11.x86_64 How reproducible: very. Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Fixed upstream at svn 825672.
Seems to be working but haven't tested extensively yet as I'm hitting other bugs. I will file new BZs :).
Ian, excuse me, what language is the original code snippet written in and how can I use it to verify this is already working?
This is in ruby.
Ian, but I am unable to make the code work. No idea where 'result' comes from. Please give me a hint.
Well, right now the ruby bindings are very broken, see: https://bugzilla.redhat.com/show_bug.cgi?id=599116 So you wouldn't be able to make it work at all anyway, but take a look at 599116 as there is a ruby script in there for querying libvirt-qpid which would work to prove this bug too.