From 658a3d4daf619121bd41c73e501e0da9c281292a Mon Sep 17 00:00:00 2001 From: Jose Angel Garrido Montoya Date: Wed, 17 Oct 2018 17:03:16 +0200 Subject: [PATCH] Update virtual_machine.rb --- src/vmm_mad/remotes/lib/vcenter_driver/virtual_machine.rb | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/vmm_mad/remotes/lib/vcenter_driver/virtual_machine.rb b/src/vmm_mad/remotes/lib/vcenter_driver/virtual_machine.rb index 6177f62d6e6..13291ae1c35 100644 --- a/src/vmm_mad/remotes/lib/vcenter_driver/virtual_machine.rb +++ b/src/vmm_mad/remotes/lib/vcenter_driver/virtual_machine.rb @@ -1902,15 +1902,12 @@ def calculate_add_nic_spec(nic) if !one_item.retrieve_xmlelements('TEMPLATE/NIC_DEFAULT/MODEL').nil? && !one_item.retrieve_xmlelements('TEMPLATE/NIC_DEFAULT/MODEL').empty? model = one_item['TEMPLATE/NIC_DEFAULT/MODEL'] - File.open("/tmp/culo", 'w') {|f| f.write("Lo pilla del nic default: #{model}\n") } elsif (model.nil? || model.empty?) && !nic['MODEL'].nil? && !nic['MODEL'].empty? model = nic['MODEL'] - File.open("/tmp/culo", 'w') {|f| f.write("Lo pilla del nic: #{model}\n") } else model = VCenterDriver::VIHelper.get_default('VM/TEMPLATE/NIC/MODEL') - File.open("/tmp/culo", 'w') {|f| f.write("Lo pilla vcenter default #{model}\n") } end vnet_ref = nic["VCENTER_NET_REF"] backing = nil @@ -2012,15 +2009,12 @@ def calculate_add_nic_spec_autogenerate_mac(nic) if !one_item.retrieve_xmlelements('TEMPLATE/NIC_DEFAULT/MODEL').nil? && !one_item.retrieve_xmlelements('TEMPLATE/NIC_DEFAULT/MODEL').empty? model = one_item['TEMPLATE/NIC_DEFAULT/MODEL'] - File.open("/tmp/culo", 'w') {|f| f.write("Lo pilla del nic default: #{model}\n") } elsif (model.nil? || model.empty?) && !nic['MODEL'].nil? && !nic['MODEL'].empty? model = nic['MODEL'] - File.open("/tmp/culo", 'w') {|f| f.write("Lo pilla del nic: #{model}\n") } else model = VCenterDriver::VIHelper.get_default('VM/TEMPLATE/NIC/MODEL') - File.open("/tmp/culo", 'w') {|f| f.write("Lo pilla del vcenter default: #{model}\n") } end vnet_ref = nic["VCENTER_NET_REF"] backing = nil