deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject [23/50] [abbrv] git commit: FGCP: Added more errors to exception API (thanks Dies)
Date Mon, 30 Jul 2012 14:29:17 GMT
FGCP: Added more errors to exception API (thanks Dies)


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

Branch: refs/heads/master
Commit: 1d380fc5fa586f7d4226ad3af9f3bd385c83ddfc
Parents: eeb4a9f
Author: Michal Fojtik <mfojtik@redhat.com>
Authored: Fri Jul 27 13:50:25 2012 +0200
Committer: Michal fojtik <mfojtik@redhat.com>
Committed: Fri Jul 27 13:55:43 2012 +0200

----------------------------------------------------------------------
 server/lib/deltacloud/drivers/fgcp/fgcp_driver.rb |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/1d380fc5/server/lib/deltacloud/drivers/fgcp/fgcp_driver.rb
----------------------------------------------------------------------
diff --git a/server/lib/deltacloud/drivers/fgcp/fgcp_driver.rb b/server/lib/deltacloud/drivers/fgcp/fgcp_driver.rb
index 528d5fa..53a0ac2 100644
--- a/server/lib/deltacloud/drivers/fgcp/fgcp_driver.rb
+++ b/server/lib/deltacloud/drivers/fgcp/fgcp_driver.rb
@@ -1249,6 +1249,16 @@ eofwopxml
   end
 
   exceptions do
+
+    on /ALREADY_STARTED/ do
+      status 405
+    end
+
+    # trying to start a running vserver, etc.
+    on /ILLEGAL_STATE/ do
+      status 405
+    end
+
     on /AuthFailure/ do
       status 401
     end


Mime
View raw message