summaryrefslogtreecommitdiff
path: root/lib/chef/resource/conditional.rb
diff options
context:
space:
mode:
authorBryan McLellan <btm@loftninjas.org>2014-09-25 21:01:57 -0400
committerBryan McLellan <btm@loftninjas.org>2014-09-30 20:13:31 -0400
commit3eb618e7826115c3be40d68b072adea7e5b0248e (patch)
tree5191138f96ad0dd86124e959c161316e79c95c02 /lib/chef/resource/conditional.rb
parent906b6cc2dd59c001955a6d8e7dc26296c6663539 (diff)
downloadchef-3eb618e7826115c3be40d68b072adea7e5b0248e.tar.gz
unit test for guard_interpreter creation during compilation
make sure we don't evaluate the guard_interpreter immediately, i.e. during compilation of the resource, as the conditional may be seen before the guard_interpreter attribute.
Diffstat (limited to 'lib/chef/resource/conditional.rb')
-rw-r--r--lib/chef/resource/conditional.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/resource/conditional.rb b/lib/chef/resource/conditional.rb
index d188e2ad0b..140078d39a 100644
--- a/lib/chef/resource/conditional.rb
+++ b/lib/chef/resource/conditional.rb
@@ -72,6 +72,7 @@ class Chef
end
end
+ # this is run during convergence via Chef::Resource#run_action -> Chef::Resource#should_skip?
def continue?
# configure late in case guard_interpreter is specified on the resource after the conditional
configure