summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/ohai/plugins/linux/network.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ohai/plugins/linux/network.rb b/lib/ohai/plugins/linux/network.rb
index 9852413f..62f5dfd6 100644
--- a/lib/ohai/plugins/linux/network.rb
+++ b/lib/ohai/plugins/linux/network.rb
@@ -283,7 +283,8 @@ Ohai.plugin(:Network) do
end
end
- if line =~ /state (\w+)/
+ # https://rubular.com/r/JRp6lNANmpcLV5
+ if line =~ /\sstate (\w+)/
iface[tmp_int]["state"] = $1.downcase
end
end