Issue #4234 has been updated by Markus Roberts.
Assigned to changed from Nick Lewis to Martha Greenberg
Target version set to 2.6.0
The fix is trivial:
<pre>
diff --git a/lib/puppet/dsl/resource_api.rb b/lib/puppet/dsl/resource_api.rb
index 9aa1ea0..d82373b 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
</pre>
----------------------------------------
Bug #4234: Ruby DSL fails if you specify more than one resource
http://projects.puppetlabs.com/issues/4234
Author: Nick Lewis
Status: Accepted
Priority: Normal
Assigned to: Martha Greenberg
Category:
Target version: 2.6.0
Affected version: 2.6.0rc3
Keywords:
Branch:
$ cat ruby_test.rb
node "nick-lewiss-macbook-pro" do
file "/Users/nicklewis/test.a", :ensure => :present
file "/Users/nicklewis/test.b", :ensure => :present
end
$ puppet apply ruby_test.rb
MethodMissing loop when searching for file with ["/Users/nicklewis/test.b",
{:ensure=>:present}] on node nick-lewiss-macbook-pro.local
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.