diff options
author | Marton Natko <marton.natko@gmail.com> | 2016-11-22 13:21:44 +0100 |
---|---|---|
committer | Marton Natko <martonnatko@Martons-MacBook-Pro.local> | 2016-11-22 13:23:18 +0100 |
commit | 43d7d4d9121aa6205a9b04991fd71a0c66f9d0f6 (patch) | |
tree | 06f0acd9e5c88cc06cdf3c6d0518212e7cc69008 | |
parent | 742ed340d7b6327c9577834c6ccaa48f7c959292 (diff) | |
download | ohai-43d7d4d9121aa6205a9b04991fd71a0c66f9d0f6.tar.gz |
tunnel has to be written with two n-s
Signed-off-by: Marton Natko <marton.natko@gmail.com>
-rw-r--r-- | lib/ohai/plugins/ip_scopes.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ohai/plugins/ip_scopes.rb b/lib/ohai/plugins/ip_scopes.rb index 188d8fd0..e9367762 100644 --- a/lib/ohai/plugins/ip_scopes.rb +++ b/lib/ohai/plugins/ip_scopes.rb @@ -32,7 +32,7 @@ Ohai.plugin(:IpScopes) do begin attrs["ip_scope"] = address.to_ip.scope - if private_addr?(address) && !tunel_iface?(interface) && !ppp_iface?(interface) && !docker_iface?(interface) + if private_addr?(address) && !tunnel_iface?(interface) && !ppp_iface?(interface) && !docker_iface?(interface) privateaddress(address) end rescue ArgumentError @@ -55,7 +55,7 @@ Ohai.plugin(:IpScopes) do interface["type"] == "ppp" end - def tunel_iface?(interface) + def tunnel_iface?(interface) interface["type"] == "tunl" end |