B #2828: vCenter template without any nic do not fail at deploy

This commit is contained in:
sergio semedi authored and Tino Vázquez committed 2019-01-18 15:42:37 +01:00
1 parent fad4a1c454
commit 24af2b77d2
1 file changed
+1 -1
@@ -1573,7 +1573,7 @@ class VirtualMachine < VCenterDriver::Template
end
# grab the last unitNumber to ensure the nic to be added at the end
@unic = @unic || get_vcenter_nics.map{|d| d.unitNumber}.max rescue 0
@unic = @unic || get_vcenter_nics.map{|d| d.unitNumber}.max || 0
card_spec = {
:key => 0,
:deviceInfo => {