Revision 8cd7d0df src/vmm_mad/remotes/ec2/shutdown

View differences:

src/vmm_mad/remotes/ec2/shutdown
34 34
host      = ARGV[1]
35 35
vm_id     = ARGV[2]
36 36

  
37
vm = OpenNebula::VirtualMachine.new_with_id(vm_id, OpenNebula::Client.new)
38
vm.info
37
begin
38
    vm = OpenNebula::VirtualMachine.new_with_id(vm_id, OpenNebula::Client.new)
39
    vm.info
39 40

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

  
42
ec2_drv = EC2Driver.new(host)
43
    ec2_drv = EC2Driver.new(host)
43 44

  
44
begin
45 45
    ec2_drv.shutdown(deploy_id, lcm_state)
46 46
rescue Exception => e
47 47
    handle_exception("Save", e, host, deploy_id, vm_id)

Also available in: Unified diff