in providers/erasure.rb [104:114]
def profile_exists?(name)
cmd = Mixlib::ShellOut.new("ceph osd erasure-code-profile get #{name}")
cmd.run_command
cmd.error!
Chef::Log.debug "Erasure coding profile exists: #{cmd.stdout}"
true
rescue
Chef::Log.debug "Erasure coding profile doesn't seem to exist: #{cmd.stderr}"
false
end