From 5297dc6ede8f77f1800a1903add70cc63015e886 Mon Sep 17 00:00:00 2001 From: Adam Leff Date: Mon, 18 Sep 2017 15:48:04 -0400 Subject: [PATCH] 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 --- lib/resources/auditd_rules.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/resources/auditd_rules.rb b/lib/resources/auditd_rules.rb index a95a5127d..552f96391 100644 --- a/lib/resources/auditd_rules.rb +++ b/lib/resources/auditd_rules.rb @@ -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')`