From cbf94db3fe5c7e7265cbd235f6c4cf5ccc452418 Mon Sep 17 00:00:00 2001 From: "Carlos J. Herrera" Date: Mon, 15 Mar 2021 14:08:59 -0400 Subject: [PATCH] F #~: index from 0 (#978) Signed-off-by: Carlos Herrera --- src/vmm_mad/remotes/lib/vcenter_driver/vm_template.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 3c5ff7b1a7..a5ead8ba00 100644 --- a/src/vmm_mad/remotes/lib/vcenter_driver/vm_template.rb +++ b/src/vmm_mad/remotes/lib/vcenter_driver/vm_template.rb @@ -602,7 +602,7 @@ module VCenterDriver def nic_alias_from_nic(id, nic, nic_index, network_found, vm_object) nic_tmp = '' - nic_alias_index = 1 + nic_alias_index = 0 if nic[:ipv4_additionals] nic[:ipv4_additionals].split(',').each do |ipv4_additional| ipv4, ipv6 = @@ -1014,7 +1014,7 @@ module VCenterDriver # Track allocated networks for rollback allocated_networks = [] - nic_index = 1 + nic_index = 0 vc_nics.each do |nic| # Check if the network already exists