From 0e7457bfae3efc212d549321b305e6471470e0c8 Mon Sep 17 00:00:00 2001 From: sergiojvg Date: Thu, 9 May 2019 05:33:58 -0500 Subject: [PATCH] B #3320: Get ip when multiple ARs (#3321) --- src/vmm_mad/remotes/lib/vcenter_driver/vm_template.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vmm_mad/remotes/lib/vcenter_driver/vm_template.rb b/src/vmm_mad/remotes/lib/vcenter_driver/vm_template.rb index f339e7cd9c..961b3dd7a7 100644 --- a/src/vmm_mad/remotes/lib/vcenter_driver/vm_template.rb +++ b/src/vmm_mad/remotes/lib/vcenter_driver/vm_template.rb @@ -403,6 +403,7 @@ class Template ar_array = network.to_hash['VNET']['AR_POOL']['AR'] ar_array = [ar_array] if ar_array.is_a?(Hash) ipv4, ipv6 = find_ip_in_ar(ip, ar_array) if ar_array + break if ipv4 !="" or ipv6 != "" end break end