Revision 9e5bb8b9 src/vmm_mad/remotes/lib/vcenter_driver/host.rb

View differences:

src/vmm_mad/remotes/lib/vcenter_driver/host.rb
464 464
                number  = matches[1] if matches
465 465

  
466 466
                # Extract vmid from ref and vcenter instance uuid if possible
467
                one_vm = nil
467 468
                if number == -1
468 469
                    one_vm = VCenterDriver::VIHelper.find_by_ref(OpenNebula::VirtualMachinePool,
469 470
                                                                "DEPLOY_ID",
470 471
                                                                vm_ref,
471 472
                                                                vc_uuid,
472 473
                                                                vm_pool)
473
                    number = one_vm["ID"] if one_vm
474
                end
474
                    if one_vm
475
                        number = one_vm["ID"]
475 476

  
476
                if number != -1
477
                    next if @monitored_vms.include? number
478
                    @monitored_vms << number
477
                        next if @monitored_vms.include? number
478
                        @monitored_vms << number
479 479

  
480
                    if vm.get_vm_id(vm_pool)
481
                        vm.one_item
480
                        vm.one_item = one_vm
481
                        vm.vm_id = number
482 482
                    end
483 483
                end
484 484

  

Also available in: Unified diff