Skip to content

Commit

Permalink
part argument is never nil
Browse files Browse the repository at this point in the history
  • Loading branch information
wfeldt committed Sep 18, 2018
1 parent 160daf6 commit 0889e66
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib/y2storage/proposal/autoinst_devices_planner.rb
Expand Up @@ -123,9 +123,8 @@ def planned_for_disk(disk, drive)
#
# @note The part argument is used when we emulate the sle12 behavior to
# have partition 0 mean the full disk.
def planned_for_full_disk(drive, part = nil)
def planned_for_full_disk(drive, part)
planned = Y2Storage::Planned::StrayBlkDevice.new
part ||= Y2Storage::AutoinstProfile::PartitionSection.new
device_config(planned, part, drive)
planned.lvm_volume_group_name = part.lvm_group
add_device_reuse(planned, drive.device, part)
Expand Down

0 comments on commit 0889e66

Please sign in to comment.