summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCooper Lees <me@cooperlees.com>2020-07-02 12:58:01 -0700
committerCooper Lees <me@cooperlees.com>2020-07-02 12:58:37 -0700
commit2ecd824a90bfe35670e173c1c4a453a0147f4a4d (patch)
treec721fcee955021fee05debdc9167a1103e93506f
parente12ef5a5777160fdf7fdda2fbc5e7fc367cd2d8f (diff)
downloadohai-2ecd824a90bfe35670e173c1c4a453a0147f4a4d.tar.gz
Fix bad copy paste + rerun rspec locally
Signed-off-by: Cooper Lees <me@cooperlees.com>
-rw-r--r--lib/ohai/plugins/network.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ohai/plugins/network.rb b/lib/ohai/plugins/network.rb
index 57ef0baa..60c139c0 100644
--- a/lib/ohai/plugins/network.rb
+++ b/lib/ohai/plugins/network.rb
@@ -54,7 +54,7 @@ Ohai.plugin(:NetworkAddresses) do
ipaddresses.sort_by do |v|
[ ( scope_prio.index(v[:scope]) || 999999 ),
128 - v[:ipaddress].prefix.to_i,
- ipaddress.respond_to?(:to_u32) ? ipaddress.to_u32 : ipaddress.to_u128,
+ v[:ipaddress].respond_to?(:to_u32) ? v[:ipaddress].to_u32 : v[:ipaddress].to_u128,
]
end
end