Skip to content

Commit

Permalink
Drop unneeded call to LvmPv#blk_device
Browse files Browse the repository at this point in the history
  • Loading branch information
imobachgs committed Nov 3, 2017
1 parent d15c022 commit 16bbe8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/y2storage/proposal/autoinst_space_maker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def find_reused_partitions(devicegraph, planned_devices)
all << devicegraph.partitions.find { |p| device.reuse == p.name }
when Y2Storage::Planned::LvmVg
vg = devicegraph.lvm_vgs.find { |v| File.join("/dev", device.reuse) == v.name }
all.concat(vg.lvm_pvs.map(&:blk_device))
all.concat(vg.lvm_pvs)
when Y2Storage::Planned::Md
all << devicegraph.md_raids.find { |r| device.reuse == r.name }
end
Expand Down

0 comments on commit 16bbe8b

Please sign in to comment.