Re: [one-users] listing images and its vms

2014-02-05 Thread João Pagaime
thanks, you answer was very useful! --joão Em 05-02-2014 11:38, Javier Fontan escreveu: "img" does not have a method called vms. You can get the IDs of the VMs using the retrieve_elements method [1]: vm_ids=img.retrieve_elements("VMS/ID") As an example you can check the code for oneimage show

Re: [one-users] listing images and its vms

2014-02-05 Thread Javier Fontan
"img" does not have a method called vms. You can get the IDs of the VMs using the retrieve_elements method [1]: vm_ids=img.retrieve_elements("VMS/ID") As an example you can check the code for oneimage show [2]. [1] http://docs.opennebula.org/doc/4.4/oca/ruby/OpenNebula/XMLElement.html#retrieve_

[one-users] listing images and its vms

2014-02-05 Thread João Pagaime
Hello all I'm trying to put together a very simple ruby script that outputs opennebula's images and its vms as far as listing opennebula's images, everything is fine, but I get an error when trying, for each image, to lists its vms acording to the 4.2 API documentation the image class shou