diff --git a/lib/chloride/action/detect_platform.rb b/lib/chloride/action/detect_platform.rb index 28efd07..6aace2f 100644 --- a/lib/chloride/action/detect_platform.rb +++ b/lib/chloride/action/detect_platform.rb @@ -37,7 +37,7 @@ def go(&stream_block) :rhel when /amazonami/ :amazon - when /suselinux/ + when /suse/ :sles else distribution.to_sym @@ -45,7 +45,7 @@ def go(&stream_block) release = lsb_data['Release'].gsub(/\s+/, '') release = case distribution - when :centos, :rhel + when :centos, :rhel, :sles release.split('.')[0] when :debian if release == 'testing'