deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject [2/3] git commit: RHEV-M: Report unaccessible API_PROVIDER as 502
Date Fri, 24 Feb 2012 12:34:23 GMT
RHEV-M: Report unaccessible API_PROVIDER as 502

Previously when API_PROVIDER was specified incorrectly
or RHEV-M API server was unaccessible, HTTP status code
500 (Internal Server Error) was reported.
HTTP specification, handle this with 502 (Bad Gateway) error.


Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/80cdb7e9
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/80cdb7e9
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/80cdb7e9

Branch: refs/heads/master
Commit: 80cdb7e961ff1c0590e0cdf4f0df283e83f72f51
Parents: fcba437
Author: Michal Fojtik <mfojtik@redhat.com>
Authored: Fri Feb 24 13:09:05 2012 +0100
Committer: Michal fojtik <mfojtik@redhat.com>
Committed: Fri Feb 24 13:09:05 2012 +0100

----------------------------------------------------------------------
 .../lib/deltacloud/drivers/rhevm/rhevm_driver.rb   |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/80cdb7e9/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb
----------------------------------------------------------------------
diff --git a/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb b/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb
index 12f628e..162175c 100644
--- a/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb
+++ b/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb
@@ -339,11 +339,11 @@ class RHEVMDriver < Deltacloud::BaseDriver
       status 404
     end
 
-    on /InternalServerError/ do
+    on /(InternalServerError|nodename nor servname provided)/ do
       status 502
     end
 
-    on /(RestClient|RHEVM)/ do
+    on /(RestClient|RHEVM|Ovirt)/ do
       status 500
     end
 


Mime
View raw message