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

View differences:

src/vmm_mad/remotes/vcenter/poll
46 46
    puts vm.info
47 47

  
48 48
rescue Exception => e
49
    STDERR.puts "Cannot poll info for VM #{vm_ref} on vCenter cluster "\
50
                "#{vc_cluster_name} failed due to "\
51
                "\"#{e.message}\"\n#{e.backtrace}"
49
    message = "Cannot poll info for VM #{vm_ref} on vCenter cluster "\
50
              "#{vc_cluster_name} failed due to "\
51
              "\"#{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