Revision 469ff036 src/vmm_mad/remotes/vcenter/snapshot_revert

View differences:

src/vmm_mad/remotes/vcenter/snapshot_revert
30 30
require 'vcenter_driver2'
31 31

  
32 32
vm_ref          = ARGV[0]
33
snapshot_name   = ARGV[1]
33
snap_id         = ARGV[1]
34 34
vc_cluster_name = ARGV[3]
35 35

  
36 36
host = VCenterDriver::VIHelper.find_by_name(OpenNebula::HostPool, vc_cluster_name)
......
41 41

  
42 42
    vm = VCenterDriver::VirtualMachine.new_from_ref(vm_ref, vi_client)
43 43

  
44
    vm.revert_snapshot(snapshot_name)
44
    vm.revert_snapshot(snap_id)
45 45

  
46 46
rescue Exception => e
47 47
    STDERR.puts "Snapshot of VM #{vm_ref} on vCenter cluster "\

Also available in: Unified diff