mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-19 11:22:55 +09:00
Bug #3632: Fix for vlan_str not being defined
(cherry picked from commit 3718659b36)
This commit is contained in:
1 parent
11e4b4a12e
commit
bfaf8da52a
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user