deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject [1/3] git commit: RHEV-M: Report 404 correctly on unknown datacenter
Date Fri, 24 Feb 2012 12:34:23 GMT
Updated Branches:
  refs/heads/master 984fa6343 -> f5983903d


RHEV-M: Report 404 correctly on unknown datacenter


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

Branch: refs/heads/master
Commit: f5983903db4b7e99a9a5b7f53791863f9f585940
Parents: 80cdb7e
Author: Michal Fojtik <mfojtik@redhat.com>
Authored: Fri Feb 24 13:22:39 2012 +0100
Committer: Michal fojtik <mfojtik@redhat.com>
Committed: Fri Feb 24 13:22:39 2012 +0100

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


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/f5983903/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 162175c..10ffef3 100644
--- a/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb
+++ b/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb
@@ -335,20 +335,16 @@ class RHEVMDriver < Deltacloud::BaseDriver
       status 401
     end
 
-    on /ResourceNotFound/ do
-      status 404
-    end
-
     on /(InternalServerError|nodename nor servname provided)/ do
       status 502
     end
 
-    on /(RestClient|RHEVM|Ovirt)/ do
-      status 500
+    on /(404|ResourceNotFound)/ do
+      status 404
     end
 
-    on /(.*) not found^/ do
-      status 400
+    on /(RestClient|RHEVM|OVIRT)/ do
+      status 500
     end
 
     on /Parameter name/ do


Mime
View raw message