Skip to content

Commit 55455d5

Browse files
authored
Fix array initialization
Fix array initialization (was mistakenly initializing as a hash)
1 parent 15e08d7 commit 55455d5

File tree

1 file changed

+1
-1
lines changed
  • chef/cookbooks/ceph/recipes

1 file changed

+1
-1
lines changed

chef/cookbooks/ceph/recipes/osd.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
if is_crowbar?
7272
dirty = false
7373

74-
node.set["ceph"]["osd_devices"] ||= []
74+
node.set["ceph"]["osd_devices"] = [] if node["ceph"]["osd_devices"].nil?
7575
min_size_blocks = node["ceph"]["osd"]["min_size_gb"] * 1024 * 1024 * 2
7676
unclaimed_disks = BarclampLibrary::Barclamp::Inventory::Disk.unclaimed(node).sort.select { |d| d.size >= min_size_blocks }
7777

0 commit comments

Comments
 (0)