mirror of
https://github.com/inspec/inspec
synced 2024-11-27 07:00:39 +00:00
Added oracle linux to rhel platform section.
Broken when chef/train was fixed to detect oracle linux correctly. Signed-off-by: Carl Johnston <carldjohnston@gmail.com>
This commit is contained in:
parent
be529dcea6
commit
316c994cc5
1 changed files with 2 additions and 2 deletions
|
@ -134,9 +134,9 @@ module Inspec::Resources
|
|||
else
|
||||
SysV.new(inspec, service_ctl || '/usr/sbin/service')
|
||||
end
|
||||
elsif %w{redhat fedora centos}.include?(platform)
|
||||
elsif %w{redhat fedora centos oracle}.include?(platform)
|
||||
version = os[:release].to_i
|
||||
if (%w{ redhat centos }.include?(platform) && version >= 7) || (platform == 'fedora' && version >= 15)
|
||||
if (%w{ redhat centos oracle }.include?(platform) && version >= 7) || (platform == 'fedora' && version >= 15)
|
||||
Systemd.new(inspec, service_ctl)
|
||||
else
|
||||
SysV.new(inspec, service_ctl || '/sbin/service')
|
||||
|
|
Loading…
Reference in a new issue