Revision 1aaf04e4 src/vmm_mad/remotes/vcenter/shutdown
src/vmm_mad/remotes/vcenter/shutdown | ||
---|---|---|
59 | 59 |
vm.shutdown #Undeploy, Poweroff or Terminate |
60 | 60 |
|
61 | 61 |
rescue Exception => e |
62 |
STDERR.puts "Shutdown of VM #{vm_ref} on vCenter cluster "\ |
|
63 |
"#{vc_cluster_name} failed due to "\ |
|
64 |
"\"#{e.message}\"\n#{e.backtrace}" |
|
62 |
message = "Shutdown of VM #{vm_ref} on vCenter cluster "\ |
|
63 |
"#{vc_cluster_name} failed due to "\ |
|
64 |
"\"#{e.message}\"\n#{e.backtrace}" |
|
65 |
STDERR.puts error_message(message) |
|
65 | 66 |
exit -1 |
66 | 67 |
ensure |
67 | 68 |
vi_client.close_connection if vi_client |
Also available in: Unified diff