We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6078a8a commit ad1fbccCopy full SHA for ad1fbcc
chef/cookbooks/ceph/recipes/mon.rb
@@ -88,6 +88,7 @@
88
add_key.error!
89
90
# no need to check if the attribute is already set: it's part of the
91
+ # only_if
92
node.set["ceph"]["monitor-secret"] = monitor_key
93
node.save
94
end
chef/cookbooks/ceph/recipes/osd.rb
@@ -71,7 +71,7 @@
71
if is_crowbar?
72
dirty = false
73
74
- node.set["ceph"]["osd_devices"] ||= []
+ node.set["ceph"]["osd_devices"] = [] if node["ceph"]["osd_devices"].nil?
75
min_size_blocks = node["ceph"]["osd"]["min_size_gb"] * 1024 * 1024 * 2
76
unclaimed_disks = BarclampLibrary::Barclamp::Inventory::Disk.unclaimed(node).sort.select { |d| d.size >= min_size_blocks }
77
0 commit comments