From d6cbb2198e06bb6b8f0172b1a48c9717c7ce6e17 Mon Sep 17 00:00:00 2001 From: Markus Roberts Date: Wed, 14 Jul 2010 13:29:11 -0700 Subject: Fix for #4234 -- ruby DSL fails on second resource The loop detection mechanism isn't great (it should, for example, allow nesting if the signatures differ) but the key problem was that the ensure was simply backwards. --- lib/puppet/dsl/resource_api.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/puppet/dsl/resource_api.rb b/lib/puppet/dsl/resource_api.rb index 9aa1ea07a..d82373b0e 100644 --- a/lib/puppet/dsl/resource_api.rb +++ b/lib/puppet/dsl/resource_api.rb @@ -37,7 +37,7 @@ class Puppet::DSL::ResourceAPI super ensure - @searching_for_method = true + @searching_for_method = false end def set_instance_variables -- cgit