lib/kuzushi.rb in kuzushi-0.0.6 vs lib/kuzushi.rb in kuzushi-0.0.7

- old
+ new

@@ -88,10 +88,15 @@ check_format(v) end def process_raids(r) task "assemble raid #{r.device}" do - shell "mdadm --assemble #{r.device} #{r.drives.join(" ")}" + begin + shell "mdadm --assemble #{r.device} #{r.drives.join(" ")}" + rescue Object => o + puts "error: #{o.message}" + retry + end end set_scheduler r check_format r add_package "mdadm" end