1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-23 22:50:09 +03:00

Bug #3632: Fix for vlan_str not being defined

(cherry picked from commit 3718659b366e60b7f10f180de6305342192b0427)
This commit is contained in:
Tino Vazquez 2015-02-24 17:55:29 +01:00
parent 11e4b4a12e
commit bfaf8da52a

View File

@ -380,6 +380,7 @@ class VIClient
default_pc = n.config.defaultPortConfig
has_vlan = false
vlan_str = ""
if default_pc.methods.include? :vlan
has_vlan = default_pc.vlan.methods.include? :vlanId
@ -387,7 +388,6 @@ class VIClient
if has_vlan
vlan = n.config.defaultPortConfig.vlan.vlanId
vlan_str = ""
if vlan != 0
if vlan.is_a? Array