Details
-
Bug
-
Status: Closed
-
Normal
-
Resolution: Done
-
None
-
None
-
None
-
Needs Assessment
Description
The Problem
I managed to create a module that can't seem to find the type_of function, I have stdlib installed and when I try to run this branch of the module it consistently says it can't find the type_of function. I spent some time working with reid and he tried cloning it down and he had the same issue on his own setup.
https://github.com/npwalker/puppetdb_gc/tree/cannot_find_type_of_function_error
Reid and I spent a few hours looking at it and trying some different things to determine a root cause and we couldn't narrow it down.
He recreated a small sample of just a module with a defined type that used the type_of function and that worked so we were at a loss for what the issue might be.
Reproduction
puppet module install puppetlabs/stdlib
|
cd /etc/puppetlabs/code/environments/production/modules
|
git clone https://github.com/npwalker/puppetdb_gc
|
cd puppetdb_gc
|
git checkout cannot_find_type_of_function_error
|
puppet apply -e "include puppetdb_gc"
|
The issue is occurring on PE 2016.4.2 which uses puppet-agent 1.7.1
More reproduction
I've also confirmed the issue using puppet-agent 1.8.1.
[root@agent-181-centos puppetdb_gc]# puppet apply -e "include puppetdb_gc"
|
Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Unknown function: 'type_of'. at /etc/puppetlabs/code/environments/production/modules/puppetdb_gc/manifests/gc_cron.pp:12:29 at /etc/puppetlabs/code/environments/production/modules/puppetdb_gc/manifests/init.pp:30 on node agent-181-centos.puppetdebug.vlan
|
[root@agent-181-centos puppetdb_gc]# puppet --version
|
4.8.1
|
Attachments
Issue Links
- supports
-
PUP-6953 Puppet should give a more direct error when it can't find a 4.x function because of a missing module dependency
-
- Closed
-