You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by mf...@apache.org on 2012/02/24 13:34:23 UTC
[3/3] git commit: VSphere: Report unaccessible API_PROVIDER as 502
VSphere: Report unaccessible API_PROVIDER as 502
Previously, when client accessed VSphere through our
VSphere driver and wrong API_PROVIDER was specified,
client got 500 (Internal Server) error.
This kind of error is according to HTTP specification
covered by 502 (Bad Gateway).
Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/fcba437d
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/fcba437d
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/fcba437d
Branch: refs/heads/master
Commit: fcba437d6ae5776761a8efa608cf9039d74eee63
Parents: 984fa63
Author: Michal Fojtik <mf...@redhat.com>
Authored: Fri Feb 24 13:02:36 2012 +0100
Committer: Michal fojtik <mf...@redhat.com>
Committed: Fri Feb 24 13:02:36 2012 +0100
----------------------------------------------------------------------
.../deltacloud/drivers/vsphere/vsphere_driver.rb | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/deltacloud/blob/fcba437d/server/lib/deltacloud/drivers/vsphere/vsphere_driver.rb
----------------------------------------------------------------------
diff --git a/server/lib/deltacloud/drivers/vsphere/vsphere_driver.rb b/server/lib/deltacloud/drivers/vsphere/vsphere_driver.rb
index 0f6d93a..e2e7654 100644
--- a/server/lib/deltacloud/drivers/vsphere/vsphere_driver.rb
+++ b/server/lib/deltacloud/drivers/vsphere/vsphere_driver.rb
@@ -356,6 +356,10 @@ module Deltacloud::Drivers::VSphere
status 401
end
+ on /nodename nor servname provided/ do
+ status 502
+ end
+
on /ERROR/ do
status 500
end