Skip to content

Commit

Permalink
Fix AutoinstPartPlan.Read return value
Browse files Browse the repository at this point in the history
  • Loading branch information
imobachgs committed Sep 14, 2020
1 parent 1dcc4db commit 5843077
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/modules/AutoinstPartPlan.rb
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ def Import(settings)
def Read
devicegraph = Y2Storage::StorageManager.instance.probed
@plan = Y2Storage::AutoinstProfile::PartitioningSection.new_from_storage(devicegraph)
true
end

# Dump the settings to a map, for autoinstallation use.
Expand Down
4 changes: 4 additions & 0 deletions test/AutoinstPartPlan_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@
subject.Read
expect(subject.Export).to eq(partitioning.to_hashes)
end

it "returns true" do
expect(subject.Read).to eq(true)
end
end

describe "#Import" do
Expand Down

0 comments on commit 5843077

Please sign in to comment.