Skip to content

Commit 50f719d

Browse files
committed
Use one block
1 parent 31ca8e8 commit 50f719d

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

controls/package_spec.rb

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,9 @@
8080
impact 1.0
8181
title 'Install auditd'
8282
desc 'auditd provides extended logging capacities on recent distribution'
83-
if os.redhat?
84-
describe package('audit') do
85-
it { should be_installed }
86-
end
87-
else
88-
describe package('auditd') do
89-
it { should be_installed }
90-
end
83+
audit_pkg = os.redhat? ? 'audit' : 'auditd'
84+
describe package(audit_pkg) do
85+
it { should be_installed }
9186
end
9287
describe auditd_conf do
9388
its('log_file') { should cmp '/var/log/audit/audit.log' }

0 commit comments

Comments
 (0)