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
Kelsey Hightower bc74e06d12 (#10570) Use nil in-place of missing attributes
Without this patch, `Fog::Compute::Vsphere#convert_vm_mob_ref_to_attr_hash`
method produces unhandled exceptions during VMware cloning and listing
operations. The root cause of these exceptions are based on the fact
that some VMware virtual machine attributes: hypervisor name, and
macaddress, are not available until the cloning process has finished.

These exceptions can be triggered when external events take place within
the VMware infrastructure such as end-users cloning machines via some
other VMware management tool.

This patch solves the problem by catching any exceptions that occur
during attribute lookups for both the hypervisor name and the virtual
machine macaddress, and setting them to nil.

This patch also removes the host attribute from the hash generated by
the `Fog::Compute::Vsphere#convert_vm_mob_ref_to_attr_hash` method. The
hypervisor attribute is added instead, which is an alias to host.

This patch changes the behaviour of the
`Fog::Compute::Vsphere#convert_vm_mob_ref_to_attr_hash` method by
catching exceptions for missing attributes, and setting them to nil.
2011-11-07 13:42:55 -05:00
..
aws merge EMR changes with upstream repo 2011-11-04 09:29:23 -07:00
bin merge EMR changes with upstream repo 2011-11-04 09:29:23 -07:00
bluebox [bluebox|compute] Expect correct status code for template create 2011-09-22 16:57:22 -07:00
brightbox [brightbox] Fixed incorrect call to reset_ftp_password 2011-10-13 10:08:06 +01:00
compute/models added linode ssh support 2011-10-05 17:33:49 -04:00
core merge EMR changes with upstream repo 2011-11-04 09:29:23 -07:00
dnsimple [core] pass connection_options through service init 2011-09-12 10:01:56 -05:00
dnsmadeeasy [core] pass connection_options through service init 2011-09-12 10:01:56 -05:00
dynect [core] pass connection_options through service init 2011-09-12 10:01:56 -05:00
ecloud [core] separate loggers for deprecations/warnings 2011-10-19 14:49:34 -05:00
glesys [glesys|compute] skip flavor tests 2011-09-27 16:34:33 -05:00
go_grid Sends power parameter in GoGrid's grid_server_power request 2011-10-25 13:54:11 +02:00
google [core] separate loggers for deprecations/warnings 2011-10-19 14:49:34 -05:00
libvirt [Compute|Libvirt] Take into account a query string can be empty, different on some rubies it gives nil, on some empty string 2011-09-30 16:13:24 +02:00
linode clean up public_ip_address code for linode 2011-10-05 18:13:24 -04:00
local [core] work toward separate requires 2011-08-31 15:52:53 -05:00
new_servers [core] pass connection_options through service init 2011-09-12 10:01:56 -05:00
ninefold [ninefold|storage] allow overwriting files for consistency 2011-11-01 09:35:51 -05:00
openstack Allow setting userdata as plain ascii or b64. 2011-10-13 23:14:34 -04:00
rackspace [rackspace][dns] fixes for job request format 2011-10-25 10:43:06 -05:00
slicehost [core] fixing more paths after rearrange 2011-09-22 19:34:14 -05:00
storm_on_demand [core] pass connection_options through service init 2011-09-12 10:01:56 -05:00
terremark [core] separate loggers for deprecations/warnings 2011-10-19 14:49:34 -05:00
vcloud [core] pass connection_options through service init 2011-09-12 10:01:56 -05:00
virtual_box [core] work toward separate requires 2011-08-31 15:52:53 -05:00
vmfusion [vmfusion|compute] reworked structure as will be released in 0.4.0a 2011-09-23 16:59:23 +02:00
voxel [core] pass connection_options through service init 2011-09-12 10:01:56 -05:00
vsphere (#10570) Use nil in-place of missing attributes 2011-11-07 13:42:55 -05:00
zerigo Merge pull request #552 from mogotest/fix_zerigo_host_update 2011-10-09 08:54:21 -07:00
aws.rb merge EMR changes with upstream repo 2011-11-04 09:29:23 -07:00
bin.rb [core] more useful structure for Fog.providers 2011-10-20 10:52:36 -05:00
bluebox.rb [core] more convenient accessors 2011-09-22 19:00:48 -05:00
brightbox.rb [core] more convenient accessors 2011-09-22 19:00:48 -05:00
cdn.rb [cdn|rackspace] move rackspace cdn to its own shared area (namespacing should probably be corrected) 2011-08-24 14:25:17 -05:00
compute.rb Implement fog support for the Openstack Compute API v1.1. Includes 2011-09-26 02:51:45 -04:00
core.rb [core] prototype logger 2011-09-01 17:48:43 -05:00
dns.rb [dns|rackspace] move rackspace dns to its own shared area (namespacing should probably be corrected) 2011-08-29 10:37:01 -05:00
dnsimple.rb [core] more convenient accessors 2011-09-22 19:00:48 -05:00
dnsmadeeasy.rb [core] more convenient accessors 2011-09-22 19:00:48 -05:00
dynect.rb [core] more convenient accessors 2011-09-22 19:00:48 -05:00
ecloud.rb [core] more convenient accessors 2011-09-22 19:00:48 -05:00
glesys.rb [core] more convenient accessors 2011-09-22 19:00:48 -05:00
go_grid.rb [core] more convenient accessors 2011-09-22 19:00:48 -05:00
google.rb [core] more convenient accessors 2011-09-22 19:00:48 -05:00
libvirt.rb [core] more convenient accessors 2011-09-22 19:00:48 -05:00
linode.rb [core] more convenient accessors 2011-09-22 19:00:48 -05:00
local.rb [core] more convenient accessors 2011-09-22 19:00:48 -05:00
new_servers.rb [core] more convenient accessors 2011-09-22 19:00:48 -05:00
ninefold.rb [core] more convenient accessors 2011-09-22 19:00:48 -05:00
openstack.rb [OpenStack|compute] fix v2.0 auth endpoints 2011-10-11 16:59:12 -04:00
providers.rb Additions and updates to the OpenStack API tests. 2011-09-29 14:10:21 -04:00
rackspace.rb [core] more convenient accessors 2011-09-22 19:00:48 -05:00
slicehost.rb [core] more convenient accessors 2011-09-22 19:00:48 -05:00
storage.rb [storage|rackspace] move rackspace storage to its own shared area (namespacing should probably be corrected) 2011-08-24 14:12:29 -05:00
storm_on_demand.rb [core] more convenient accessors 2011-09-22 19:00:48 -05:00
terremark.rb [core] work toward separate requires 2011-08-31 15:52:53 -05:00
vcloud.rb [core] more convenient accessors 2011-09-22 19:00:48 -05:00
virtual_box.rb [core] more convenient accessors 2011-09-22 19:00:48 -05:00
vmfusion.rb [core] more convenient accessors 2011-09-22 19:00:48 -05:00
voxel.rb [core] more convenient accessors 2011-09-22 19:00:48 -05:00
vsphere.rb [core] more convenient accessors 2011-09-22 19:00:48 -05:00
zerigo.rb [core] more convenient accessors 2011-09-22 19:00:48 -05:00