Skip to content
This repository has been archived by the owner on Apr 21, 2021. It is now read-only.

Commit

Permalink
(PE-19513) SLES 12 SP2 Higgs support
Browse files Browse the repository at this point in the history
Prior to this patch, the detect_platform regex would overlook
the "SUSE" string returned from lsb_release in SLES 12 SP2.
It also would fail to split the minor release number from the
release string.  This patch brings SLES support in line with
RHEL by stripping the minor version on the check and accepting
all known SuSE platform strings.
  • Loading branch information
abottchen committed Feb 6, 2017
1 parent e357d75 commit 87f9797
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/chloride/action/detect_platform.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ def go(&stream_block)
:rhel
when /amazonami/
:amazon
when /suselinux/
when /suse/
:sles
else
distribution.to_sym
end

release = lsb_data['Release'].gsub(/\s+/, '')
release = case distribution
when :centos, :rhel
when :centos, :rhel, :sles
release.split('.')[0]
when :debian
if release == 'testing'
Expand Down

0 comments on commit 87f9797

Please sign in to comment.