summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Milla <joseph.milla@applovin.com>2019-06-26 15:57:44 -0700
committerJoseph Milla <joseph.milla@applovin.com>2019-06-26 15:57:44 -0700
commit3d5fcfbcbc8a9c6b6de4b1e32306bf71cbda8e65 (patch)
tree46d37508406c7f2e12a59ff24c4a37ccd0b967a1
parent7e0dc7e7dec232d3b4f74f7e9bde422f4334aaa8 (diff)
downloadohai-3d5fcfbcbc8a9c6b6de4b1e32306bf71cbda8e65.tar.gz
Make state regex less restrictive
-rw-r--r--lib/ohai/plugins/linux/network.rb2
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