diff options
author | adamedx <adamed@opscode.com> | 2014-03-18 05:47:43 -0700 |
---|---|---|
committer | Adam Edwards <adamed@opscode.com> | 2014-03-29 00:20:56 -0700 |
commit | f6c92b0a472061871b65c9fa4cc30c641243f6c5 (patch) | |
tree | bd1ce97108019d1a2b300ec745869dabfa89a3ff /lib/chef/resource/execute.rb | |
parent | 557c2966892d70e5603dbb69f380cfcaad1f801e (diff) | |
download | chef-f6c92b0a472061871b65c9fa4cc30c641243f6c5.tar.gz |
Enable inheritance in guards for certain attributes of execute resources
Diffstat (limited to 'lib/chef/resource/execute.rb')
-rw-r--r-- | lib/chef/resource/execute.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/chef/resource/execute.rb b/lib/chef/resource/execute.rb index 6c07bf9352..8715871cfc 100644 --- a/lib/chef/resource/execute.rb +++ b/lib/chef/resource/execute.rb @@ -41,6 +41,15 @@ class Chef @user = nil @allowed_actions.push(:run) @umask = nil + append_guard_inherited_attributes( + [ + :cwd, + :environment, + :group, + :path, + :user, + :umask + ]) end def umask(arg=nil) |