deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject [3/3] git commit: VSphere: Report unaccessible API_PROVIDER as 502
Date Fri, 24 Feb 2012 12:34:23 GMT
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 <mfojtik@redhat.com>
Authored: Fri Feb 24 13:02:36 2012 +0100
Committer: Michal fojtik <mfojtik@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


Mime
View raw message