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

View differences:

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

  
51 51
rescue Exception => e
52
    STDERR.puts "Attach NIC for VM #{vm_ref} on vCenter cluster #{vc_cluster_name} "\
53
                "failed due to \"#{e.message}\"\n#{e.backtrace}"
54
    exit(-1)
52
    message = "Attach NIC 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)
55
    exit -1
55 56
ensure
56 57
    vi_client.close_connection if vi_client
57 58
end

Also available in: Unified diff