search for: print_properti

Displaying 1 result from an estimated 1 matches for "print_properti".

Did you mean: print_properties
2009 Jul 23
0
[PATCH server] Add network QMF apis.
...irt-test.rb index 412a8ee..ab67d10 100755 --- a/src/ovirt-agent/ovirt-test.rb +++ b/src/ovirt-agent/ovirt-test.rb @@ -18,6 +18,12 @@ b = s.add_broker(srv, :mechanism => 'GSSAPI') # This segfaults in F10 (ruby-1.8.6.287-2.fc10.x86_64) # p s.objects(:class => "Ovirt") +def print_properties(obj) + for (key, val) in obj.properties + puts " property: #{key}, #{val}" + end +end + ovirt = s.object(:class => "Ovirt") puts "id is #{ovirt.object_id}" raise "ACK! NO ovirt class!" unless ovirt @@ -25,6 +31,32 @@ puts "ovirt.version is...