Skip to content

Commit

Permalink
fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Spiers committed Aug 12, 2016
1 parent 5f7be0b commit 12da87d
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions chef/cookbooks/barclamp/libraries/barclamp_library.rb
Original file line number Diff line number Diff line change
Expand Up @@ -267,21 +267,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 Expand Up @@ -330,8 +330,8 @@ def self.lookup_interface_info(node, conduit, intf_to_if_map = nil)

class Network
attr_reader :name, :address, :mtu, :broadcast, :mac, :netmask,
:subnet, :router, :usage, :vlan, :use_vlan, :interface,
:interface_list, :add_bridge, :conduit
:subnet, :router, :usage, :vlan, :use_vlan, :interface,
:interface_list, :add_bridge, :conduit
def initialize(net, data, rintf, interface_list)
@name = net
@address = data["address"]
Expand Down

0 comments on commit 12da87d

Please sign in to comment.