mirror of
https://github.com/inspec/inspec
synced 2024-11-23 13:13:22 +00:00
Add deprecation warning to auditd_rules resource (#2156)
The auditd_rules resource has been replaced by the auditd resource. We are planning on removing the auditd_rules resource in InSpec 2.0. This change will provide a warning to any user using the old resource. Signed-off-by: Adam Leff <adam@leff.co>
This commit is contained in:
parent
c6703af02c
commit
5297dc6ede
1 changed files with 2 additions and 0 deletions
|
@ -87,6 +87,8 @@ module Inspec::Resources
|
|||
parse_content
|
||||
@legacy = nil
|
||||
end
|
||||
|
||||
warn '[DEPRECATION] The `auditd_rules` resource is deprecated and will be removed in InSpec 2.0. Use the `auditd` resource instead.'
|
||||
end
|
||||
|
||||
# non-legacy instances are not asked for `its('LIST_RULES')`
|
||||
|
|
Loading…
Reference in a new issue