[Ovirt-devel] Ovirt QMF API Proposal

Bryan Kearney bkearney at redhat.com
Wed Apr 1 13:59:54 UTC 2009


Ian Main wrote:
> 
> # Look up completed tasks.
> tasks = s.objects(:class => 'Task', 'completed' => true)

How does this work on the backend? Are all Tasks instantiated and 
managed by the agent, or does this turn into a method call to get he 
managed objects?

> 
> tasks.each do |task|
>   puts "task #{task.description} completed"
>   puts "Error message: #{task.message}" if task.error
> end
> 
> 
> 
> _______________________________________________
> Ovirt-devel mailing list
> Ovirt-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/ovirt-devel




More information about the ovirt-devel mailing list