Skip to content

Commit

Permalink
Use PRETTY_NAME for installed_product rule
Browse files Browse the repository at this point in the history
  • Loading branch information
imobachgs committed Jan 27, 2016
1 parent 376426c commit 73332d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/modules/AutoInstallRules.rb
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ def ProbeRules

Builtins.y2milestone("Other linux parts: %1", @LinuxPartitions)

@installed_product = Yast::OSRelease.ReleaseName
@installed_product = Yast::OSRelease.ReleaseInformation
@installed_product_version = Yast::OSRelease.ReleaseVersion
Ops.set(@ATTR, "installed_product", @installed_product)
Ops.set(@ATTR, "installed_product_version", @installed_product_version)
Expand Down
2 changes: 1 addition & 1 deletion test/AutoInstallRules_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
expect(Yast::Storage).to receive(:GetForeignPrimary)
expect(Yast::Storage).to receive(:GetOtherLinuxPartitions)

expect(Yast::OSRelease).to receive(:ReleaseName).
expect(Yast::OSRelease).to receive(:ReleaseInformation).
and_return("SUSE Linux Enterprise Server 12")
expect(Yast::OSRelease).to receive(:ReleaseVersion).
and_return("12")
Expand Down

0 comments on commit 73332d4

Please sign in to comment.