lib/specinfra/command/redhat/base/service.rb in specinfra-2.82.0 vs lib/specinfra/command/redhat/base/service.rb in specinfra-2.82.1

- old
+ new

@@ -1,8 +1,10 @@ class Specinfra::Command::Redhat::Base::Service < Specinfra::Command::Linux::Base::Service class << self def create(os_info=nil) - if (os_info || os)[:release].to_i < 7 + release = (os_info || os)[:release].to_i + # Dirty hack for Amazon Linux + if release < 7 || release > 2000 self else Specinfra::Command::Redhat::V7::Service end end