summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2020-11-18 10:23:41 -0800
committerTim Smith <tsmith84@gmail.com>2020-11-18 11:02:49 -0800
commite0a74b61bc17ded3ebb55ed54b808661130b6ed2 (patch)
tree67db5145ed6148ce57fc412af0379ec5a9035cd3
parentafe75fd0094204636f6acac8a1ba71e43ffa96ff (diff)
downloadohai-e0a74b61bc17ded3ebb55ed54b808661130b6ed2.tar.gz
Update lib/ohai/plugins/aix/network.rb
Signed-off-by: Tim Smith <tsmith@chef.io>
-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 214bfa30..1760d505 100644
--- a/lib/ohai/plugins/aix/network.rb
+++ b/lib/ohai/plugins/aix/network.rb
@@ -121,7 +121,7 @@ Ohai.plugin(:Network) do
so_n.stdout.each_line do |line|
if line =~ /(\S+)\s+(\S+)\s+(\S+)\s+(\d+)\s+(\d+)\s+(\S+)/
interface = $6
- ifaces[interface][:routes] = [] unless ifaces[interface][:routes]
+ ifaces[interface][:routes] ||= []
ifaces[interface][:routes] << Mash.new( destination: $1, family: family,
via: $2, flags: $3)
end