Merge pull request #18 from alram/master

Fix for old ceph-disk-prepare
This commit is contained in:
Sage Weil 2013-03-29 12:23:45 -07:00
commit 01b05a24fe

View File

@ -130,6 +130,9 @@ else
# - $cluster should always be ceph
# - The --dmcrypt option will be available starting w/ Cuttlefish
node["ceph"]["osd_devices"].each_with_index do |osd_device,index|
if not osd_device["status"].nil?
next
end
dmcrypt = ""
if osd_device["encrypted"] == true
dmcrypt = "--dmcrypt"
@ -143,7 +146,7 @@ else
# so that we can implement recreate
# and/or delete functionalities in the
# future.
node.normal["ceph"]["osd_devices"][index]["status"] == "deployed"
node.normal["ceph"]["osd_devices"][index]["status"] = "deployed"
node.save
end
end