I don't get the point here. I understand that variables got initialized if defined inside 'if' but for a loop I would prefer to reinitialize the variables at beginning of the loop. E.g. for variable 'status_map' it is essential to be reset to {}.

          Builtins.foreach(Convert.convert(vlans, :from => "list", :to => "list <map>")) do |vlan|
            info_map = {}
            fcoe_vlan_interface = ""
            status_map = {}
            dcb_default = ""
            vlan_if = vlan["vlan"] || ""