File facter-detect-recent-opensuse.patch of Package rubygem-facter
From 50c045f451a4cd4d82c6cb6a073f525c989657c4 Mon Sep 17 00:00:00 2001
From: Robert Munteanu <robert@lmn.ro>
Date: Sat, 27 Aug 2016 23:24:12 +0300
Subject: [PATCH] FACT-1496 - Facter fails to detect more recent openSUSE
versions
Detect openSUSE based on the lsbdistid fact in addition to the
now-deprecated /etc/SuSE-release file.
---
lib/facter/operatingsystem/linux.rb | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/facter/operatingsystem/linux.rb b/lib/facter/operatingsystem/linux.rb
index de7913d..07679e3 100644
--- a/lib/facter/operatingsystem/linux.rb
+++ b/lib/facter/operatingsystem/linux.rb
@@ -13,6 +13,8 @@ module Facter
@operatingsystem ||= "Ubuntu"
elsif lsbdistid == "LinuxMint"
@operatingsystem ||= "LinuxMint"
+ elsif lsbdistid.start_with?("openSUSE")
+ @operatingsystem ||= "openSUSE"
else
@operatingsystem ||= get_operatingsystem_with_release_files
end
--
2.9.3