summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/ohai/plugins/linux/selinux.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/ohai/plugins/linux/selinux.rb b/lib/ohai/plugins/linux/selinux.rb
index c12424f2..8cbb6a4d 100644
--- a/lib/ohai/plugins/linux/selinux.rb
+++ b/lib/ohai/plugins/linux/selinux.rb
@@ -51,8 +51,9 @@ Ohai.plugin(:Selinux) do
end
end
- key, val = line.split(%r{:?\s\s+}, 2)
+ key, val = line.split(/:?\s\s+/, 2)
next if key.nil?
+
unless key.start_with?("/")
key.downcase!
key.tr!(" ", "_")