From 451b1dd58a63c0c1f8cf26bfb6d7ee52a902c15f Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Tue, 29 Oct 2019 10:09:09 -0700 Subject: tweak unified_mode settings * windows_script inherits from script and is obviously safe * all of the sub-providers of the group provider i have not audited. Signed-off-by: Lamont Granquist --- lib/chef/resource/group.rb | 4 +--- lib/chef/resource/windows_script.rb | 4 +++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/chef/resource/group.rb b/lib/chef/resource/group.rb index 9a43c60e31..b7f44cd239 100644 --- a/lib/chef/resource/group.rb +++ b/lib/chef/resource/group.rb @@ -1,7 +1,7 @@ # # Author:: Adam Jacob () # Author:: Tyler Cloke () -# Copyright:: Copyright 2008-2018, Chef Software Inc. +# Copyright:: Copyright 2008-2019, Chef Software Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -20,8 +20,6 @@ class Chef class Resource class Group < Chef::Resource - unified_mode true - state_attrs :members description "Use the group resource to manage a local group." diff --git a/lib/chef/resource/windows_script.rb b/lib/chef/resource/windows_script.rb index c542fbd81b..f17b3e31c9 100644 --- a/lib/chef/resource/windows_script.rb +++ b/lib/chef/resource/windows_script.rb @@ -1,6 +1,6 @@ # # Author:: Adam Edwards () -# Copyright:: Copyright 2013-2016, Chef Software Inc. +# Copyright:: Copyright 2013-2019, Chef Software Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -23,6 +23,8 @@ require_relative "../mixin/windows_architecture_helper" class Chef class Resource class WindowsScript < Chef::Resource::Script + unified_mode true + # This is an abstract resource meant to be subclasses; thus no 'provides' set_guard_inherited_attributes(:architecture) -- cgit v1.2.1