trlinkin/trlinkin-noop

Unknown function: 'noop'

andersonericw opened this issue · 5 comments

After upgrading to 2018.1.1 puppet master version and agents to 5.5.1, our code that is utilizing the 'noop()' function is failing saying the function is unknown.

we are referencing the noop module from our Puppetfile to tag 1.0.0 which has not changed.

Same here, using module on puppet agent and master 4.10.12

I'd like to share that I successfully resolved my problem by adding this line in metadata.json in the module that uses this module:

"dependencies": [
{"name":"trlinken-noop","version_requirement":">= 1.0.0"}
],

@andersonericw Yup, @Crypter 's solution of adding a dependency to metadata.json is what you have to do.

In Puppet 5, if you use a modern-API function from another module, you have to have the module listed as a dependency.
Or, you can list no dependencies by removing the dependencies key from your module.

Could there be a README item about that? I thinks it's important to know when you use this module.