diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2019-10-29 10:09:09 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2019-10-29 10:09:09 -0700 |
commit | 451b1dd58a63c0c1f8cf26bfb6d7ee52a902c15f (patch) | |
tree | 7d0ed0f4ba5ab910f8fef99a14de855771071c11 /lib | |
parent | ddf24bcbbfed3852fc3c19f739927072a27c1f00 (diff) | |
download | chef-451b1dd58a63c0c1f8cf26bfb6d7ee52a902c15f.tar.gz |
tweak unified_mode settingslcg/unified-mode1
* 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 <lamont@scriptkiddie.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/chef/resource/group.rb | 4 | ||||
-rw-r--r-- | 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 (<adam@chef.io>) # Author:: Tyler Cloke (<tyler@chef.io>) -# 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 (<adamed@chef.io>) -# 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) |