Fails of vcenter_one54_pre.rb

When I try to execute the script vcenter_one54_pre.rb, in the phase 8 I’ve got the next problem:

================================================================================
PHASE 8 - Inspect existing VMs


VM compasslab:

— DEPLOY_ID has been changed to vm-26312
An error occurred when pre-migrating OpenNebula:
undefined method []' for nil:NilClass" ["vcenter_one54_pre.rb:713:invm_unmanaged_discover’", “vcenter_one54_pre.rb:2672:in block in inspect_vms'", "vcenter_one54_pre.rb:2419:ineach’”, “vcenter_one54_pre.rb:2419:in inspect_vms'", "vcenter_one54_pre.rb:2940:inblock (2 levels) in '”, “/usr/lib/one/ruby/cli/command_parser.rb:449:in call'", "/usr/lib/one/ruby/cli/command_parser.rb:449:inrun’”, “/usr/lib/one/ruby/cli/command_parser.rb:76:in initialize'", "vcenter_one54_pre.rb:2741:innew’”, “vcenter_one54_pre.rb:2741:in `’”]

I get a similar issue during Phase 8:

— DEPLOY_ID has been changed to vm-467
— Image Ubuntu - ZALABNAS01 [Template 12] with ID 15 already exists
— Added unmanaged disk to xml template (IMAGE_ID=15)
An error occurred when pre-migrating OpenNebula:
undefined method network' for #<RbVmomi::VIM::VirtualEthernetCardDistributedVirtualPortBackingInfo:0x000000033cd888>" ["vcenter_one54_pre.rb:567:inblock in vm_unmanaged_discover’", “vcenter_one54_pre.rb:366:in each'", "vcenter_one54_pre.rb:366:invm_unmanaged_discover’”, “vcenter_one54_pre.rb:2672:in block in inspect_vms'", "vcenter_one54_pre.rb:2419:ineach’”, “vcenter_one54_pre.rb:2419:in inspect_vms'", "vcenter_one54_pre.rb:2940:inblock (2 levels) in '”, “/usr/lib/one/ruby/cli/command_parser.rb:449:in run'", "/usr/lib/one/ruby/cli/command_parser.rb:76:ininitialize’”, “vcenter_one54_pre.rb:2741:in new'", "vcenter_one54_pre.rb:2741:in'”]

Juan, it seems that there was a previous problem importing datastores. Can you send us the full output of the premigrator script?