Skip to content

Commit

Permalink
Bug #3632: Fix for vlan_str not being defined
Browse files Browse the repository at this point in the history
(cherry picked from commit 3718659)
  • Loading branch information
tinova committed Feb 24, 2015
1 parent 11e4b4a commit bfaf8da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vmm_mad/remotes/vcenter/vcenter_driver.rb
Expand Up @@ -380,14 +380,14 @@ def vcenter_networks(one_client=nil)
default_pc = n.config.defaultPortConfig

has_vlan = false
vlan_str = ""

if default_pc.methods.include? :vlan
has_vlan = default_pc.vlan.methods.include? :vlanId
end

if has_vlan
vlan = n.config.defaultPortConfig.vlan.vlanId
vlan_str = ""

if vlan != 0
if vlan.is_a? Array
Expand Down

0 comments on commit bfaf8da

Please sign in to comment.