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

View differences:

src/vmm_mad/remotes/vcenter/deploy
68 68
    # Resize unmanaged disks
69 69
    vm.resize_unmanaged_disks
70 70

  
71

  
72

  
73 71
    vm.reconfigure
74 72
    vm.poweron
75 73
    vm.set_running(true)
......
77 75
    puts vm['_ref']
78 76

  
79 77
rescue Exception => e
80
    STDERR.puts "Deploy of VM #{vm_id} on vCenter cluster #{cluster_name} " +
81
                "with #{dfile} failed due to \"#{e.message}\"\n#{e.backtrace}"
78
    message   =  "Deploy of VM #{vm_id} on vCenter cluster #{cluster_name} " +
79
                 "with #{dfile} failed due to \"#{e.message}\"\n#{e.backtrace}"
80
    STDERR.puts error_message(message)
82 81
    exit -1
83 82
ensure
84 83
    vi_client.close_connection if vi_client

Also available in: Unified diff