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/03/20 14:26:06 UTC

[4/4] git commit: VSphere: The 'ToolsUnavailable' exception is now reported as backend error

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 <mf...@redhat.com>
Authored: Tue Mar 20 11:36:12 2012 +0100
Committer: Michal fojtik <mf...@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