diff options
author | Cooper Lees <me@cooperlees.com> | 2020-07-06 11:21:39 -0700 |
---|---|---|
committer | Cooper Lees <me@cooperlees.com> | 2020-07-06 11:22:06 -0700 |
commit | d06342586aabae25ab73d607b2ddf83efb28a2d4 (patch) | |
tree | 1c73ad9308865068dd40bcc2f400b8733950d2fe | |
parent | 2ecd824a90bfe35670e173c1c4a453a0147f4a4d (diff) | |
download | ohai-d06342586aabae25ab73d607b2ddf83efb28a2d4.tar.gz |
Move to @jaymzh .to_i suggestion
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 60c139c0..8e9425ef 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, - v[:ipaddress].respond_to?(:to_u32) ? v[:ipaddress].to_u32 : v[:ipaddress].to_u128, + v[:ipaddress].to_i, ] end end |