Revision 05ed37c9 src/vmm_mad/remotes/vcenter/shutdown

View differences:

src/vmm_mad/remotes/vcenter/shutdown
37 37
vm = OpenNebula::VirtualMachine.new_with_id(vm_id, OpenNebula::Client.new)
38 38
vm.info
39 39

  
40
lcm_state     = vm.lcm_state_str
40
lcm_state   = vm.lcm_state_str
41
keep_disks  = vm.keep_disks?
41 42

  
42 43
begin
43
    VCenterDriver::VCenterVm.shutdown(deploy_id, host, lcm_state)
44
    VCenterDriver::VCenterVm.shutdown(deploy_id, host, lcm_state, keep_disks)
44 45
rescue Exception => e
45 46
    STDERR.puts "Shutdown of VM #{deploy_id} on host #{host} failed " +
46 47
                "due to \"#{e.message}\""

Also available in: Unified diff