From 73332d49e84e045a00cf1f761ec32ec9a759accf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Imobach=20Gonz=C3=A1lez=20Sosa?= Date: Wed, 27 Jan 2016 09:31:46 +0000 Subject: [PATCH] Use PRETTY_NAME for installed_product rule --- src/modules/AutoInstallRules.rb | 2 +- test/AutoInstallRules_test.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/AutoInstallRules.rb b/src/modules/AutoInstallRules.rb index 3e4ec6b07..c1decb59d 100644 --- a/src/modules/AutoInstallRules.rb +++ b/src/modules/AutoInstallRules.rb @@ -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) diff --git a/test/AutoInstallRules_test.rb b/test/AutoInstallRules_test.rb index 0fb7b8d27..b98f85fb7 100755 --- a/test/AutoInstallRules_test.rb +++ b/test/AutoInstallRules_test.rb @@ -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")