summaryrefslogtreecommitdiff
path: root/lib/chef/resource/execute.rb
diff options
context:
space:
mode:
authorSerdar Sutay <serdar@opscode.com>2014-10-14 14:42:25 -0700
committerSerdar Sutay <serdar@opscode.com>2014-10-16 13:30:24 -0700
commit8be4d2a44858b14d10d0a19484a2d090b0a7a2fb (patch)
treefa713587092354c19facbc1423ffab4c6bc2cc8e /lib/chef/resource/execute.rb
parent8dd586b1fdbb13705a1a3a5f7f792568cc39e434 (diff)
downloadchef-8be4d2a44858b14d10d0a19484a2d090b0a7a2fb.tar.gz
Differentiate between the default and the user set guard_attributes in order to be able to warn users correctly when they configure a guard_attribute but use a ruby block in the guard.
Diffstat (limited to 'lib/chef/resource/execute.rb')
-rw-r--r--lib/chef/resource/execute.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/execute.rb b/lib/chef/resource/execute.rb
index e0a1bbb8c0..ae118b1c9e 100644
--- a/lib/chef/resource/execute.rb
+++ b/lib/chef/resource/execute.rb
@@ -40,7 +40,7 @@ class Chef
@user = nil
@allowed_actions.push(:run)
@umask = nil
- @guard_interpreter = :execute
+ @default_guard_interpreter = :execute
end
def umask(arg=nil)