From 6744904cbb761ef674919fe5f6e1c4439959b5be Mon Sep 17 00:00:00 2001 From: Xorima Bot Date: Tue, 11 May 2021 09:11:56 +0000 Subject: [PATCH] Cookstyle 7.12.2 Fixes Issues found and resolved with: resources/default.rb - 1:1 refactor: Chef/Deprecations/ResourceWithoutUnifiedTrue - Set unified_mode true in Chef Infra Client 15.3+ custom resources to ensure they work correctly in Chef Infra Client 18 April 2022 when Unified Mode becomes the default. https://docs.chef.io/workstation/cookstyle/chef_deprecations_resourcewithoutunifiedtrue Signed-off-by: Xorima Bot --- CHANGELOG.md | 4 ++++ resources/default.rb | 1 + 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f085720..b4a346a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ This file is used to list changes made in each version of the sudo cookbook. +## Unreleased + +- resolved cookstyle error: resources/default.rb:1:1 refactor: `Chef/Deprecations/ResourceWithoutUnifiedTrue` + ## 5.4.6 (2020-06-08) - Support Chef Infra Client 16.2+ - [@tas50](https://github.com/tas50) diff --git a/resources/default.rb b/resources/default.rb index 145569c..3f90894 100644 --- a/resources/default.rb +++ b/resources/default.rb @@ -26,6 +26,7 @@ chef_version_for_provides '< 14.0' if respond_to?(:chef_version_for_provides) resource_name :sudo provides :sudo +unified_mode true # acording to the sudo man pages sudo will ignore files in an include dir that have a `.` or `~` # We convert either to `__`