From: Michal Fojtik <[email protected]> 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
Signed-off-by: Michal fojtik <[email protected]> --- .../deltacloud/drivers/vsphere/vsphere_driver.rb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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 -- 1.7.9.1
