[Puppet - Bug #14789] (Unreviewed) Puppet::Parser::Functions.autoloader.loaded not available in puppet 3.0

4 views
Skip to first unread message

tic...@puppetlabs.com

unread,
Jun 2, 2012, 2:53:27 AM6/2/12
to ja...@lovedthanlost.net, puppe...@googlegroups.com, r...@devco.net, k...@puppetlabs.com, tux...@gmail.com, sanjiv...@gmail.com, haiw...@gmail.com
Issue #14789 has been reported by hai wu.

Bug #14789: Puppet::Parser::Functions.autoloader.loaded not available in puppet 3.0

  • Author: hai wu
  • Status: Unreviewed
  • Priority: Normal
  • Assignee:
  • Category:
  • Target version:
  • Affected Puppet version: 3.0.0rc3
  • Keywords:
  • Branch:

I was using this: Puppet::Parser::Functions.autoloader.load(:functionname) unless Puppet::Parser::Functions.autoloader.loaded?(:functionname) from this URL: http://vstone.eu/why-not-to-use-puppetparserfunctions-autoloader-loadall/.

But it seems ‘Puppet::Parser::Functions.autoloader.loaded’ is no longer available in puppet 3.0. Any alternative in puppet 3.0?


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

tic...@puppetlabs.com

unread,
Jun 6, 2012, 12:26:15 PM6/6/12
to ja...@lovedthanlost.net, puppe...@googlegroups.com, r...@devco.net, k...@puppetlabs.com, tux...@gmail.com, sanjiv...@gmail.com, haiw...@gmail.com, pat...@puppetlabs.com
Issue #14789 has been updated by Kelsey Hightower.
  • Status changed from Unreviewed to Investigating
  • Assignee set to Patrick Carlisle

Patrick,

Can you take a look at this and see if anything jumps out? I figured with the recent autoloader work you’ve done you might have some quick answers.

  • Author: hai wu
  • Status: Investigating
  • Priority: Normal
  • Assignee: Patrick Carlisle
  • Category:
  • Target version:
  • Affected Puppet version: 3.0.0rc3
  • Keywords:
  • Branch:

tic...@puppetlabs.com

unread,
Jun 7, 2012, 2:26:49 PM6/7/12
to ja...@lovedthanlost.net, puppe...@googlegroups.com, r...@devco.net, k...@puppetlabs.com, tux...@gmail.com, sanjiv...@gmail.com, haiw...@gmail.com, pat...@puppetlabs.com
Issue #14789 has been updated by Patrick Carlisle.

I think this was an oversight. Originally I meant there to be a require-like method that would encapsulate all of that logic but it didn’t get finished.

  • Author: hai wu
  • Status: Investigating
  • Priority: Normal
  • Assignee: Patrick Carlisle
  • Category:
  • Target version:
  • Affected Puppet version: 3.0.0rc3
  • Keywords:
  • Branch:

tic...@puppetlabs.com

unread,
Jun 7, 2012, 3:36:27 PM6/7/12
to ja...@lovedthanlost.net, puppe...@googlegroups.com, r...@devco.net, k...@puppetlabs.com, tux...@gmail.com, sanjiv...@gmail.com, haiw...@gmail.com, pat...@puppetlabs.com
Issue #14789 has been updated by Patrick Carlisle.
  • Status changed from Investigating to In Topic Branch Pending Review
  • Priority changed from Normal to Urgent
  • Target version set to 3.0.0

https://github.com/puppetlabs/puppet/pull/840

I’m targeting this at 3.0 because fixing it revealed that some of the methods didn’t work correctly (inconsistencies between having the .rb extension and not).

  • Author: hai wu
  • Status: In Topic Branch Pending Review
  • Priority: Urgent
  • Assignee: Patrick Carlisle
  • Category:
  • Target version: 3.0.0
  • Affected Puppet version: 3.0.0rc3
  • Keywords:
  • Branch:

tic...@puppetlabs.com

unread,
Jun 7, 2012, 11:38:14 PM6/7/12
to ja...@lovedthanlost.net, puppe...@googlegroups.com, r...@devco.net, k...@puppetlabs.com, tux...@gmail.com, sanjiv...@gmail.com, haiw...@gmail.com, pat...@puppetlabs.com
Issue #14789 has been updated by Patrick Carlisle.
  • Status changed from In Topic Branch Pending Review to Merged - Pending Release
  • Author: hai wu
  • Status: Merged - Pending Release
  • Priority: Urgent
  • Assignee: Patrick Carlisle
  • Category:
  • Target version: 3.0.0
  • Affected Puppet version: 3.0.0rc3
  • Keywords:
  • Branch:

tic...@puppetlabs.com

unread,
Aug 27, 2012, 7:16:54 PM8/27/12
to ja...@lovedthanlost.net, puppe...@googlegroups.com, r...@devco.net, k...@puppetlabs.com, tux...@gmail.com, ste...@zipkid.eu, haiw...@gmail.com, pat...@puppetlabs.com
Issue #14789 has been updated by Matthaus Litteken.
  • Status changed from Merged - Pending Release to Closed
  • Affected Puppet version deleted (3.0.0rc3)

Released in Puppet 3.0.0-rc4

  • Author: hai wu
  • Status: Closed
  • Priority: Urgent
  • Assignee: Patrick Carlisle
  • Category:
  • Target version: 3.0.0
  • Affected Puppet version:
  • Keywords:
  • Branch:
Reply all
Reply to author
Forward
0 new messages