Bug #3632: Fix for vlan_str not being defined

(cherry picked from commit 3718659b36)
This commit is contained in:
Tino Vazquez committed 2015-02-24 17:56:27 +01:00
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