-
-
Save whiteley/cbc4e9ef217310410878 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/ohai/plugins/linux/network.rb b/lib/ohai/plugins/linux/network.rb | |
index 689001d..36898b9 100644 | |
--- a/lib/ohai/plugins/linux/network.rb | |
+++ b/lib/ohai/plugins/linux/network.rb | |
@@ -77,7 +77,7 @@ Ohai.plugin(:Network) do | |
# 3) and since we're at it, let's populate some :routes attributes | |
# (going to do that for both inet and inet6 addresses) | |
def check_routing_table(family, iface) | |
- so = shell_out("ip -o -f #{family[:name]} route show") | |
+ so = shell_out("ip -o -f #{family[:name]} route show table default") | |
so.stdout.lines do |line| | |
line.strip! | |
Ohai::Log.debug("Parsing #{line}") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment