Skip to content

(#18121) Collector overrides should work in Ruby 1.9#1333

Closed
hunner wants to merge 1 commit intopuppetlabs:masterfrom
hunner:fix/master/18121_collector_override
Closed

(#18121) Collector overrides should work in Ruby 1.9#1333
hunner wants to merge 1 commit intopuppetlabs:masterfrom
hunner:fix/master/18121_collector_override

Conversation

@hunner
Copy link
Contributor

@hunner hunner commented Dec 13, 2012

Increase arity of child_of? meta_def to 1

child_of? defined for Puppet::Resource::Type objects has an arity of 1,
but the meta_def of the same function created by
Puppet::Parser::Collector objects has an arity of 0. This throws errors
when the meta_def method is called with arguments. This commit matches
the arity so that this error will not be present.

Increase arity of child_of? meta_def to 1

child_of? defined for Puppet::Resource::Type objects has an arity of 1,
but the meta_def of the same function created by
Puppet::Parser::Collector objects has an arity of 0. This throws errors
when the meta_def method is called with arguments. This commit matches
the arity so that this error will not be present.
@zaphod42
Copy link
Contributor

@hunner do you have a simple test case that can reproduce the problem? I can put it together as an automated test if you can just let me know a simple way of doing it.

@zaphod42
Copy link
Contributor

@hunner never mind. I see that you give one in the referenced bug. Thanks!

@zaphod42
Copy link
Contributor

Fixed up an re-opened as PR #1334

@zaphod42 zaphod42 closed this Dec 14, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants