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
Jeff McCune 27a689b951 (#9241) Don't fail when trying to model a cloning VM
With the introduction of the vm_clone API request, a server
may be returned in the list which does not have a complete
configuration yet.  This is because the system is still in
the process of being cloned.

This is a problem because Fog would throw an undefined
method error when calling the config method of the vm managed
object instance.

This patch fixes the problem by checking if the config method
returns something and only sets attributes that are known to be
available for a cloning VM.
2011-09-10 13:32:58 -07:00
..
models/compute (#9241) Don't fail when trying to model a cloning VM 2011-09-10 13:32:58 -07:00
requests/compute (#9241) Add vm_clone API request 2011-09-10 13:32:58 -07:00
compute.rb (#9241) Add vm_clone API request 2011-09-10 13:32:58 -07:00