diff options
author | Cooper Lees <me@cooperlees.com> | 2020-07-02 12:58:01 -0700 |
---|---|---|
committer | Cooper Lees <me@cooperlees.com> | 2020-07-02 12:58:37 -0700 |
commit | 2ecd824a90bfe35670e173c1c4a453a0147f4a4d (patch) | |
tree | c721fcee955021fee05debdc9167a1103e93506f | |
parent | e12ef5a5777160fdf7fdda2fbc5e7fc367cd2d8f (diff) | |
download | ohai-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.rb | 2 |
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 |