1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-02-18 17:57:24 +03:00

B #3439: polish onevcenter tool, second (#3498)

* B #3439: polish onevcenter tool, second

Signed-off-by: Carlos J. Herrera Matos <cherrera@opennebula.systems>

* B #3439: show backtrace when debug_information is true

Signed-off-by: Carlos J. Herrera Matos <cherrera@opennebula.systems>
This commit is contained in:
Carlos J. Herrera 2019-07-12 08:38:09 -04:00 committed by Tino Vázquez
parent 4b882f1c07
commit 3a60e67657

View File

@ -512,7 +512,9 @@ module VCenterDriver
puts "\n"
exit 0 #Ctrl+C
rescue Exception => e
STDOUT.puts " Error: #{e.message}/\n#{e.backtrace}"
error_msg = "\nError: #{e.message}\n"
error_msg << "#{e.backtrace}\n" if VCenterDriver::CONFIG[:debug_information]
STDOUT.puts error_msg
ensure
vi_client.close_connection if vi_client
end