diff options
author | Anthony Caiafa <acaiafa1@bloomberg.net> | 2015-08-13 14:21:29 -0400 |
---|---|---|
committer | Anthony Caiafa <acaiafa1@bloomberg.net> | 2015-08-13 14:21:29 -0400 |
commit | d7b155f4066ac12bd8c051e0710d0d852ae624e0 (patch) | |
tree | 33141355c4a163b651c93c73b4640b24d4757c39 | |
parent | e5a0cc265049e120c75120c664ad43914ea3a9fa (diff) | |
download | ohai-d7b155f4066ac12bd8c051e0710d0d852ae624e0.tar.gz |
Only run ifconfig against active interfaces
-rw-r--r-- | lib/ohai/plugins/aix/network.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ohai/plugins/aix/network.rb b/lib/ohai/plugins/aix/network.rb index 0a9b82e9..eeaf1aa5 100644 --- a/lib/ohai/plugins/aix/network.rb +++ b/lib/ohai/plugins/aix/network.rb @@ -56,7 +56,7 @@ Ohai.plugin(:Network) do end # List the interfaces in system. - so = shell_out("lsdev -Cc if") + so = shell_out("lsdev -Cc if | grep Available") so.stdout.lines.each do |line| if line =~ /(\S+) (\S+)\s+(.+)/ interface = $1 |