diff options
author | Bryan McLellan <btm@loftninjas.org> | 2014-09-25 21:01:57 -0400 |
---|---|---|
committer | Bryan McLellan <btm@loftninjas.org> | 2014-09-30 20:13:31 -0400 |
commit | 3eb618e7826115c3be40d68b072adea7e5b0248e (patch) | |
tree | 5191138f96ad0dd86124e959c161316e79c95c02 /lib/chef/resource/conditional.rb | |
parent | 906b6cc2dd59c001955a6d8e7dc26296c6663539 (diff) | |
download | chef-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.rb | 1 |
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 |