Permalink
Browse files

fix resolv matching

  • Loading branch information...
1 parent 5e27dd0 commit 91a51286492da2e5c5362d0d006e389e693bdf0d @calavera calavera committed Sep 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/enterprise/ohai/plugins/linux/resolv.rb
View
2 lib/enterprise/ohai/plugins/linux/resolv.rb
@@ -7,7 +7,7 @@
if File.exist?(resolv_config_file)
lines = File.readlines(resolv_config_file)
- resolv_config[:name_servers] = lines.grep(/^nameserver #{ip}$/).map {|l| l[IP, 1] }
+ resolv_config[:name_servers] = lines.grep(/^nameserver #{ip}$/).map {|l| l[ip, 1] }
end
resolv resolv_config

0 comments on commit 91a5128

Please sign in to comment.