deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject [4/4] git commit: VSphere: The 'ToolsUnavailable' exception is now reported as backend error
Date Tue, 20 Mar 2012 13:26:06 GMT
VSphere: The 'ToolsUnavailable' exception is now reported as backend error

Previously the ToolsUnavailable exception from VSPhere was
reported as error 500 (Internal Server Error), which isn't correct.
This exception is caused by lack of VMWare tools in machine. These
tools are required for the 'reboot' operation.
The exception is now reported as error 502 (Backend Error).
Appropriate error message is being passed to the client in XML


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

Branch: refs/heads/master
Commit: 82e8328d1c69efee316822dc2d331245c7f40e85
Parents: a0996bc
Author: Michal Fojtik <mfojtik@redhat.com>
Authored: Tue Mar 20 11:36:12 2012 +0100
Committer: Michal fojtik <mfojtik@redhat.com>
Committed: Tue Mar 20 11:43:13 2012 +0100

----------------------------------------------------------------------
 .../deltacloud/drivers/vsphere/vsphere_driver.rb   |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/82e8328d/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 cbcaa22..fdacc10 100644
--- a/server/lib/deltacloud/drivers/vsphere/vsphere_driver.rb
+++ b/server/lib/deltacloud/drivers/vsphere/vsphere_driver.rb
@@ -363,7 +363,7 @@ module Deltacloud::Drivers::VSphere
         status 500
       end
 
-      on /RbVmomi::Fault/ do
+      on /(RbVmomi::Fault|ToolsUnavailable)/ do
         status 502
       end
 


Mime
View raw message