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

View differences:

src/vmm_mad/remotes/vcenter/attach_disk
49 49
    vm.attach_disk
50 50

  
51 51
rescue Exception => e
52
    STDERR.puts "Attach image for VM #{vm_ref} on vCenter cluster #{vc_cluster_name} "\
53
                "failed due to \"#{e.message}\"\n#{e.backtrace}"
52
    message = "Attach image for VM #{vm_ref} on vCenter cluster #{vc_cluster_name} "\
53
              "failed due to \"#{e.message}\"\n#{e.backtrace}"
54
    STDERR.puts error_message(message)
54 55
    exit -1
55 56
ensure
56 57
    vi_client.close_connection if vi_client

Also available in: Unified diff