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

View differences:

src/vmm_mad/remotes/vcenter/restore
45 45
    vm.set_running(true)
46 46

  
47 47
rescue Exception => e
48
    STDERR.puts "Restore of VM #{vm_ref} on vCenter cluster "\
49
                "#{vc_cluster_name} failed due to "\
50
                "\"#{e.message}\"\n#{e.backtrace}"
48
    message = "Restore of VM #{vm_ref} on vCenter cluster "\
49
              "#{vc_cluster_name} failed due to "\
50
              "\"#{e.message}\"\n#{e.backtrace}"
51
    STDERR.puts error_message(message)
51 52
    exit -1
52 53
ensure
53 54
    vi_client.close_connection if vi_client

Also available in: Unified diff