Skip to content

Commit

Permalink
Merge pull request #702 from DRichardt/master
Browse files Browse the repository at this point in the history
add os_detection support for SLES_SAP
  • Loading branch information
mizzy authored Jan 4, 2020
2 parents 242c405 + 6b9e797 commit dcd3634
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 dcd3634

Please sign in to comment.