mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-23 05:04:56 +09:00
B #2828: vCenter template without any nic do not fail at deploy
This commit is contained in:
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 => {
|
||||
|
||||
Reference in new issue
Block a user