From 4c16c9e325191c06ad10e95085b2f5332b956371 Mon Sep 17 00:00:00 2001 From: Ethan Hampton Date: Mon, 22 Nov 2021 09:33:06 -0800 Subject: [PATCH] Switch unified_mode to resource not provider Signed-off-by: Ethan Hampton --- providers/default.rb | 2 -- resources/default.rb | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/providers/default.rb b/providers/default.rb index ff4217c..0146c89 100644 --- a/providers/default.rb +++ b/providers/default.rb @@ -28,8 +28,6 @@ provides :chef_client_updater if respond_to?(:provides) # cookstyle: disable ChefModernize/RespondToProvides -unified_mode true if respond_to?(:unified_mode) - def load_mixlib_install gem 'mixlib-install', '~> 3.12' require 'mixlib/install' diff --git a/resources/default.rb b/resources/default.rb index 926d86b..cea954c 100644 --- a/resources/default.rb +++ b/resources/default.rb @@ -24,6 +24,8 @@ provides :chef_client_updater +unified_mode true if respond_to?(:unified_mode) + actions [:update] default_action :update