Skip to content

Commit

Permalink
add os_detection support for SLES_SAP
Browse files Browse the repository at this point in the history
changed to no freetextfield ID
  • Loading branch information
DRichardt committed Nov 8, 2019
1 parent 2786f90 commit 6b9e797
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/specinfra/helper/detect_os/suse.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ def detect
line = run_command('cat /etc/os-release').stdout
if line =~ /ID=opensuse/
family = 'opensuse'
elsif line =~ /NAME=\"SLES"/
elsif line =~ /ID="sles"/
family = 'sles'
elsif line =~ /ID="sles_sap"/
family = 'sles'
end
if line =~ /VERSION_ID=\"(\d+\.\d+|\d+)\"/
Expand Down

0 comments on commit 6b9e797

Please sign in to comment.