Greetings!
I've got a situation where I'm iterating through a list and performing
operations on them. One of these operations looks like this:
execute "Format data device for #{osd_id} using XFS" do
command "mkfs.xfs -f #{mkfs_opts} -L osd.#{osd_device['osd_id']}
#{osd_device['data_dev']}"
end
What I would like to do is instead of aborting the entire chef run
because this failed, and instead mark it failed and move on to the next
one. What is the best practice for catching an exception from an
execute resource and taking action instead of aborting?
Thanks!
-Carl
Archive powered by MHonArc 2.6.16.