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

View differences:

src/vmm_mad/remotes/ec2/deploy
34 34
host  = ARGV[1]
35 35
id    = ARGV[2]
36 36

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

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

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

  
45
text=File.read(dfile)
46
    text=File.read(dfile)
46 47

  
47
begin
48 48
    puts ec2_drv.deploy(id, host, text, lcm_state, deploy_id)
49 49

  
50 50
rescue Exception => e
51

  
52 51
    handle_exception("Deploy", e, host, deploy_id, id, dfile)
53 52
end

Also available in: Unified diff