diff options
author | Joseph Milla <joseph.milla@applovin.com> | 2019-06-26 15:57:44 -0700 |
---|---|---|
committer | Joseph Milla <joseph.milla@applovin.com> | 2019-06-26 15:57:44 -0700 |
commit | 3d5fcfbcbc8a9c6b6de4b1e32306bf71cbda8e65 (patch) | |
tree | 46d37508406c7f2e12a59ff24c4a37ccd0b967a1 | |
parent | 7e0dc7e7dec232d3b4f74f7e9bde422f4334aaa8 (diff) | |
download | ohai-3d5fcfbcbc8a9c6b6de4b1e32306bf71cbda8e65.tar.gz |
Make state regex less restrictive
-rw-r--r-- | lib/ohai/plugins/linux/network.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ohai/plugins/linux/network.rb b/lib/ohai/plugins/linux/network.rb index 685b64aa..e0b6359c 100644 --- a/lib/ohai/plugins/linux/network.rb +++ b/lib/ohai/plugins/linux/network.rb @@ -276,7 +276,7 @@ Ohai.plugin(:Network) do end end - if line =~ /state (\w+)/ + if line =~ /\sstate (\w+)/ iface[tmp_int]["state"] = $1.downcase end end |