Revision 1aaf04e4 src/vmm_mad/remotes/vcenter/cancel

View differences:

src/vmm_mad/remotes/vcenter/cancel
49 49
    vm.poweroff_hard
50 50

  
51 51
rescue Exception => e
52
    STDERR.puts "Cancel VM #{vm_ref} failed due to "\
53
                "\"#{e.message}\"\n#{e.backtrace}"
54
    exit(-1)
52
    message = "Cancel VM #{vm_ref} failed due to "\
53
              "\"#{e.message}\"\n#{e.backtrace}"
54
    STDERR.puts error_message(message)
55
    exit -1
55 56
ensure
56 57
    vi_client.close_connection if vi_client
57 58
end

Also available in: Unified diff