summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2020-11-17 18:00:19 -0800
committerGitHub <noreply@github.com>2020-11-17 18:00:19 -0800
commit1b5e59e33d97540e52c06a3e40f09d7fb69234b7 (patch)
treef42607ff6a393bc898fc9ea496b45ee6bf855512
parentd638c0fac60cffd3dd21f08c2d6587ab4c835f4a (diff)
downloadohai-1b5e59e33d97540e52c06a3e40f09d7fb69234b7.tar.gz
Update lib/ohai/plugins/aix/network.rb
Signed-off-by: Tim Smith <tsmith@chef.io> Co-authored-by: pete higgins <pete@peterhiggins.org>
-rw-r--r--lib/ohai/plugins/aix/network.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ohai/plugins/aix/network.rb b/lib/ohai/plugins/aix/network.rb
index 93851631..c1035cb4 100644
--- a/lib/ohai/plugins/aix/network.rb
+++ b/lib/ohai/plugins/aix/network.rb
@@ -51,7 +51,7 @@ Ohai.plugin(:Network) do
.stdout
.each_line
.detect { |l| l.start_with?("default") }
- .split(" ")
+ .split
network[:default_gateway] = default_line[1]
network[:default_interface] = default_line[5]
end