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:
Adam Leff 2017-09-18 15:48:04 -04:00 committed by Dominik Richter
parent c6703af02c
commit 5297dc6ede

View file

@ -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')`