projects
/
chef.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b06782
)
Record spun up status consistently
author
Tom Hughes
<tom@compton.nu>
Wed, 2 Jan 2019 18:54:12 +0000
(18:54 +0000)
committer
Tom Hughes
<tom@compton.nu>
Wed, 2 Jan 2019 18:55:42 +0000
(18:55 +0000)
cookbooks/hardware/templates/default/ohai.rb.erb
patch
|
blob
|
history
diff --git
a/cookbooks/hardware/templates/default/ohai.rb.erb
b/cookbooks/hardware/templates/default/ohai.rb.erb
index 074f5cbf6e35c624ecda8fe39e7dc3a922df02e2..82194acf29769c5cbd7405c81c4d8107505e5898 100644
(file)
--- a/
cookbooks/hardware/templates/default/ohai.rb.erb
+++ b/
cookbooks/hardware/templates/default/ohai.rb.erb
@@
-444,8
+444,8
@@
Ohai.plugin(:Hardware) do
when "Online" then disk[:status] = "online"
when "Hotspare" then disk[:status] = "hotspare"
when "Failed" then disk[:status] = "failed"
- when "Spun Up" then disk[:s
pun_down] = false
- when "Spun down" then disk[:s
pun_down] = true
+ when "Spun Up" then disk[:s
tate] = "spun_up"
+ when "Spun down" then disk[:s
tate] = "spun_down"
end
end
elsif disk && line =~ /^(\S.*\S)\s*:\s+(\S.*)$/