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
James Bence b7b8367770 Inspect error.response.body, not error.message
Recent versions of excon have a middleware component,
Excon::Middleware::Expects and fog requests mostly record an expectation
of a 200 status code. Some calls to AWS return status other than 200 and
in some cases the error handling obscures the underlying error.

Current handling parsed error.message; this instance of error is
constructed by excon and includes the response as an attribute. The
message is always something like 'Expected(200) <=> Actual(404 Not Found)'
and so the parsing never succeeds.

Instead we now attempt to parse error.response.body which should allow
extraction of the underlying AWS Code value, which in turn will produce
an exception that points to the actual underlying cause.
2013-07-01 16:47:29 -07:00
..
atmos
aws Inspect error.response.body, not error.message 2013-07-01 16:47:29 -07:00
bare_metal_cloud
bin [openvz|compute] Initial commit 2013-05-29 16:09:41 +02:00
bluebox Add TTL on save rather than initialize. 2013-05-14 16:45:42 -05:00
brightbox [Brightbox] Extract Compute::Shared to own file 2013-06-24 14:29:06 +01:00
clodo
cloudsigma Fixed typos. 2013-06-21 14:42:49 +02:00
cloudstack [cloudstack] fix broken mock test 2013-05-20 11:13:06 -05:00
compute/models Stop hardcoding the server ssh port. 2013-03-12 16:50:17 +01:00
core turn verbose error responses on 2013-06-10 20:22:21 -05:00
digitalocean [digitalocean] Rename do to docean in examples 2013-06-21 09:08:30 +02:00
dnsimple Add TTL on save rather than initialize. 2013-05-14 16:45:42 -05:00
dnsmadeeasy Add TTL on save rather than initialize. 2013-05-14 16:45:42 -05:00
dreamhost Revert "Updated gem spec to require json rather than multi_json" 2013-05-06 04:05:36 -07:00
dynect Add TTL on save rather than initialize. 2013-05-14 16:45:42 -05:00
ecloud Merge pull request #1547 from ehowe/master 2013-02-05 06:39:23 -08:00
glesys fixing merge issues 2013-03-11 16:02:00 -05:00
go_grid
google Add a custom log warning on load error. 2013-05-04 19:26:24 -04:00
hp Fix non-circular-require warnings 2013-04-22 15:16:32 -07:00
ibm
internet_archive fix broken test related to redacted excon error bodies 2013-05-20 11:04:16 -05:00
joyent GH-1853 "public" attribute for network 2013-06-02 17:50:49 +08:00
libvirt Add :id attribute to libvirt nic model 2013-05-06 12:55:33 +02:00
linode Add TTL on save rather than initialize. 2013-05-14 16:45:42 -05:00
local Chdir in a block to dry up all method 2013-05-27 16:07:26 +01:00
ninefold
openstack Fix autoincrement when creating a flavor if private flavors exist. 2013-06-18 17:58:07 +02:00
openvz [openvz|compute] Initial commit 2013-05-29 16:09:41 +02:00
ovirt ovirt quota support 2013-03-23 21:46:14 -04:00
rackspace [rackspace|dns] adding :limit => 100 to clarify that all returns a limit of 100 records per page at @rupakg suggestion. 2013-06-20 08:39:14 -05:00
riakcs Revert "Updated gem spec to require json rather than multi_json" 2013-05-06 04:05:36 -07:00
schema [tests] Fixes schema validator for arrays 2013-01-23 15:24:23 +00:00
serverlove This withstands naming/renaming issues. 2013-06-07 14:55:37 +01:00
storm_on_demand [stormondemand] fix some minor problems. Add a README.md file to describe how to use the storm on demand APIs 2013-05-25 22:48:24 +08:00
terremark Merge pull request #1558 from chirag-jog/terremark_fixes 2013-02-12 08:28:09 -08:00
vcloud [vcloud|compute] better defaults for configuring vm content-type 2013-06-14 15:19:19 -05:00
vmfusion
voxel
vsphere [vsphere] fix regex typo 2013-06-22 08:41:52 +01:00
xenserver [Docs] Fixes assorted yardoc tagging issues 2013-05-02 13:19:12 +01:00
zerigo Merge pull request #1807 from stormsilver/paginate_zerigo_zones 2013-05-14 15:13:59 -07:00
account.rb [stormondemand|account] Add Account service and token APIs 2013-05-25 15:16:42 +08:00
atmos.rb
aws.rb AWS | storage: big refactor 2013-04-16 23:30:35 +01:00
bare_metal_cloud.rb
billing.rb [stormondemand|billing] Add Billing service and related APIs 2013-05-24 17:29:12 +08:00
bin.rb [core] Removes unused getting of Constant 2013-06-14 10:07:17 +01:00
bluebox.rb fixing merge issues 2013-03-11 16:02:00 -05:00
brightbox.rb
cdn.rb [fog] Cleanup: Use the service registry for requiring libs where possible 2013-02-16 16:58:38 +05:30
clodo.rb
cloudsigma.rb [cloudsigma] Add CloudSigma compute provider 2013-05-20 16:09:37 +03:00
cloudstack.rb
compute.rb merge fail. 2013-05-01 17:44:28 -07:00
core.rb restore ability to load fog from source without bundler 2013-04-02 17:22:06 -04:00
digitalocean.rb [digitalocean|compute] initial release 2013-03-31 22:16:08 +02:00
dns.rb [stormondemand|dns] Add DNS service and domain APIs 2013-05-23 11:07:13 +08:00
dnsimple.rb
dnsmadeeasy.rb
dreamhost.rb * [dreamhost|dns] initial import 2013-01-19 23:20:38 +01:00
dynect.rb
ecloud.rb
glesys.rb
go_grid.rb
google.rb trying to move gce to google. 2013-01-16 17:55:36 -08:00
hp.rb Revert "Updated gem spec to require json rather than multi_json" 2013-05-06 04:05:36 -07:00
ibm.rb
identity.rb [fog] Cleanup: Use the service registry for requiring libs where possible 2013-02-16 16:58:38 +05:30
image.rb [fog] Cleanup: Use the service registry for requiring libs where possible 2013-02-16 16:58:38 +05:30
internet_archive.rb fix internet archive use of headers, remove acls 2013-03-26 17:21:57 -04:00
joyent.rb fix joyent and xenserver so they can be required individually 2013-03-28 11:52:27 -04:00
libvirt.rb
linode.rb
local.rb
monitoring.rb [stormondemand|monitoring] Add a new Monitoring service and add/move load/bandwidth/service APIs 2013-05-24 21:11:28 +08:00
network.rb [stormondemand|network] Add a new Network service and move all network code in Compute into Network 2013-05-25 17:29:10 +08:00
ninefold.rb
openstack.rb [openstack] Retrieve supported API version for Image & Network services 2013-03-26 16:25:04 +01:00
openvz.rb [openvz|compute] Initial commit 2013-05-29 16:09:41 +02:00
ovirt.rb
rackspace.rb Revert "Updated gem spec to require json rather than multi_json" 2013-05-06 04:05:36 -07:00
riakcs.rb Revert "Updated gem spec to require json rather than multi_json" 2013-05-06 04:05:36 -07:00
serverlove.rb
storage.rb [stormondemand|storage] Add Storage service and cluster API 2013-05-23 07:35:02 +08:00
storm_on_demand.rb [stormondemand|network] Add a new Network service and move all network code in Compute into Network 2013-05-25 17:29:10 +08:00
support.rb [stormondemand|support] Add Support service and APIs for alert and support tickets 2013-05-25 11:44:34 +08:00
terremark.rb
vcloud.rb
version.rb Release 1.12.1 2013-06-10 20:26:50 -05:00
vmfusion.rb
volume.rb [fog] Cleanup: Use the service registry for requiring libs where possible 2013-02-16 16:58:38 +05:30
voxel.rb
vpn.rb [stormondemand|vpn] Add new VPN service and APIs 2013-05-25 17:02:43 +08:00
vsphere.rb
xenserver.rb fix joyent and xenserver so they can be required individually 2013-03-28 11:52:27 -04:00
zerigo.rb