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

View differences:

src/vmm_mad/remotes/vcenter/detach_disk
47 47
          "snapshot of the virtual machine." if vm.has_snapshots?
48 48

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

Also available in: Unified diff