use @grahamc code https://github.com/ceph/ceph-cookbooks/pull/74
This commit is contained in:
Guilhem Lettron
2014-02-06 13:58:49 +01:00
parent aa8e21d6c1
commit a033dc818f

View File

@@ -100,7 +100,11 @@ else
# - $cluster should always be ceph
# - The --dmcrypt option will be available starting w/ Cuttlefish
if !node["ceph"]["osd_devices"].nil?
node["ceph"]["osd_devices"].each_with_index do |osd_device, index|
devices = node["ceph"]["osd_devices"]
devices = Hash[(0...devices.size).zip devices] unless devices.kind_of? Hash
devices.each do |osd_device, index|
unless osd_device["status"].nil?
Log.info("osd: osd_device #{osd_device} has already been setup.")
next