Skip to content

Commit

Permalink
Missed the collect.
Browse files Browse the repository at this point in the history
  • Loading branch information
andersbs committed Mar 9, 2015
1 parent 90e2a00 commit e5ed7aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/facter/util/netstat.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def self.get_route_value(route, label)
c1 = map[:dest]
c2 = map[label.to_sym]

((output = get_ipv4_output).respond_to?(:lines) ? output.lines.to_a : output.to_a). { |s| s.split}.each { |a|
((output = get_ipv4_output).respond_to?(:lines) ? output.lines.to_a : output.to_a).collect { |s| s.split}.each { |a|
if a[c1] == route
tmp1 << a[c2]
end
Expand Down
2 changes: 1 addition & 1 deletion lib/puppet/provider/l3_if_downup/util/netstat.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def self.get_route_value(route, label)
c1 = map[:dest]
c2 = map[label.to_sym]

((output = get_ipv4_output).respond_to?(:lines) ? output.lines.to_a : output.to_a). { |s| s.split}.each { |a|
((output = get_ipv4_output).respond_to?(:lines) ? output.lines.to_a : output.to_a).collect { |s| s.split}.each { |a|
if a[c1] == route
tmp1 << a[c2]
end
Expand Down

0 comments on commit e5ed7aa

Please sign in to comment.