Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix resolv matching

  • Loading branch information...
commit 91a51286492da2e5c5362d0d006e389e693bdf0d 1 parent 5e27dd0
@calavera calavera authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.