Revision 55034c90 src/vmm_mad/remotes/vcenter/deploy

View differences:

src/vmm_mad/remotes/vcenter/deploy
29 29

  
30 30
require 'vcenter_driver'
31 31

  
32
VNC_ESX_HOST_FOLDER = "/tmp"
33

  
32 34
dfile        = ARGV[0]
33 35
cluster_name = ARGV[1]
34 36
vm_id        = ARGV[2]
......
72 74
    vm.poweron
73 75
    vm.set_running(true)
74 76

  
77
    # Add VCENTER_ESX_HOST to MONITOR info so VNC works for running VMs F#4242
78
    esx_host = vm["runtime.host.name"]
79
    f = File.open(File.join(VNC_ESX_HOST_FOLDER, "vcenter_vnc_#{one_vm["ID"]}"), 'w')
80
    f.write(esx_host)
81
    f.close
82

  
75 83
    puts vm['_ref']
76 84

  
77 85
rescue Exception => e

Also available in: Unified diff