Skip to content

Commit

Permalink
fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Spiers committed Sep 9, 2016
1 parent 384b8af commit 72888c1
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions chef/cookbooks/barclamp/libraries/barclamp_library.rb
Original file line number Diff line number Diff line change
Expand Up @@ -276,21 +276,21 @@ def self.map_if_ref(if_map, ref)
if_cnt = m[3]
desired = speeds.index(m[2])
found = nil
filter = lambda { |x|
filter = lambda do |x|
found = if_map["#{speeds[x]}#{if_cnt}"] unless found
}
end
case m[1]
when "+"
(desired..speeds.length).each(&filter)
when "-"
desired.downto(0,&filter)
when "?"
(desired..speeds.length).each(&filter)
desired.downto(0,&filter) unless found
else
found = if_map[ref]
end
found
when "+"
(desired..speeds.length).each(&filter)
when "-"
desired.downto(0, &filter)
when "?"
(desired..speeds.length).each(&filter)
desired.downto(0, &filter) unless found
else
found = if_map[ref]
end
found
end

# Find the interface(s) and teaming mode to use for the given
Expand Down

0 comments on commit 72888c1

Please sign in to comment.