Skip to content

Commit

Permalink
fix whitespace damage, and a small typo
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfspyre committed Aug 10, 2013
1 parent dfa3183 commit ea2f8c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/facter/network.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#the ip tool expresses the presence of a nexthop with the word 'via'
if gw_address.include? ' via '
my_gw = gw_address.split(/\s+/)[2].match(/^(?:[0-9]{1,3}\.){3}[0-9]{1,3}$/).to_s
end
end
my_gw
end
end
Expand Down Expand Up @@ -51,7 +51,7 @@
end

#Primary IP
# Expected output: The ipaddress confugred on the interface that communicates with the nexthop
# Expected output: The ipaddress configred on the interface that communicates with the nexthop
Facter.add("network_primary_ip") do
confine :kernel => :linux
setcode do
Expand All @@ -67,4 +67,4 @@
fun.split(/\s+/)[4].to_s
end
end
end
end

0 comments on commit ea2f8c5

Please sign in to comment.