diff options
author | Markus Roberts <Markus@reality.com> | 2010-07-14 13:29:11 -0700 |
---|---|---|
committer | Markus Roberts <Markus@reality.com> | 2010-07-18 19:44:21 -0700 |
commit | d6cbb2198e06bb6b8f0172b1a48c9717c7ce6e17 (patch) | |
tree | 5cb7081829376c0b71952f715f0cf8d350ed61d7 | |
parent | 4822de3f95e08a745e727790e1a30e49064e1e43 (diff) | |
download | puppet-d6cbb2198e06bb6b8f0172b1a48c9717c7ce6e17.tar.gz puppet-d6cbb2198e06bb6b8f0172b1a48c9717c7ce6e17.tar.xz puppet-d6cbb2198e06bb6b8f0172b1a48c9717c7ce6e17.zip |
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.
-rw-r--r-- | lib/puppet/dsl/resource_api.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |