summaryrefslogtreecommitdiff
path: root/lib/ohai/plugins/linux/mdadm.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ohai/plugins/linux/mdadm.rb')
-rw-r--r--lib/ohai/plugins/linux/mdadm.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ohai/plugins/linux/mdadm.rb b/lib/ohai/plugins/linux/mdadm.rb
index f7bfc528..b20d99bb 100644
--- a/lib/ohai/plugins/linux/mdadm.rb
+++ b/lib/ohai/plugins/linux/mdadm.rb
@@ -35,6 +35,8 @@ Ohai.plugin(:Mdadm) do
device_mash[:size] = Regexp.last_match[1].to_f
when /State\s+: ([a-z]+)/
device_mash[:state] = Regexp.last_match[1]
+ when /UUID\s+: ([0-9a-z:]+)/
+ device_mash[:UUID] = Regexp.last_match[1]
when /Total Devices\s+: ([0-9]+)/
device_mash[:device_counts][:total] = Regexp.last_match[1].to_i
when /Raid Devices\s+: ([0-9]+)/