1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/vsphere
Rich Lane 08264615fe Optimize vSphere convert_vm_mob_ref_to_attr_hash
This patch reduces the number of round trips to the vSphere API by
using the `collect!` method on the ManagedObject, vm_mob_ref, which
retrieves most of the properties in one request.

For the remaining properties: hypervisor and mac_addresses, we still
need to make additional requests.

Overall this patch provides a nice speed improvement for the
`convert_vm_mob_ref_to_attr_hash` method.
2011-10-27 17:49:29 -04:00
..
models/compute Refactor requests to return simple hashes and add unit tests 2011-09-10 15:11:18 -07:00
requests/compute Fix vm clone problem when a Guid instance is passed as the instance_uuid 2011-09-14 10:15:19 -07:00
compute.rb Optimize vSphere convert_vm_mob_ref_to_attr_hash 2011-10-27 17:49:29 -04:00