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/07/30 16:29:17 UTC

[23/50] [abbrv] git commit: FGCP: Added more errors to exception API (thanks Dies)

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 <mf...@redhat.com>
Authored: Fri Jul 27 13:50:25 2012 +0200
Committer: Michal fojtik <mf...@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