Jira (PUP-8031) Evaluation Error: Error while evaluating a Function Call, undefined method `include?' for nil:NilClass

3 views
Skip to first unread message

Thomas Speigner (JIRA)

unread,
Oct 5, 2017, 7:50:02 PM10/5/17
to puppe...@googlegroups.com
Thomas Speigner created an issue
 
Puppet / Bug PUP-8031
Evaluation Error: Error while evaluating a Function Call, undefined method `include?' for nil:NilClass
Issue Type: Bug Bug
Affects Versions: PUP 4.10.8
Assignee: Henrik Lindberg
Attachments: init.pp, metadata.json, testmymodule.pp
Components: Functions, Modules, PE
Created: 2017/10/05 4:49 PM
Priority: Normal Normal
Reporter: Thomas Speigner

Functions do not seem to work properly when there is "bad" data in metadata.json.

Puppet Version: PE 2017.2.1 2017.2.4

Please take a moment and attach any relevant log output and/or manifests. This will help us immensely when troubleshooting the issue.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe)
Atlassian logo

Henrik Lindberg (JIRA)

unread,
Oct 6, 2017, 6:07:02 PM10/6/17
to puppe...@googlegroups.com
Henrik Lindberg assigned an issue to Unassigned
Change By: Henrik Lindberg
Assignee: Henrik Lindberg
Team: Platform Core
Component/s: PE

Josh Cooper (JIRA)

unread,
Jun 26, 2018, 2:55:04 PM6/26/18
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Sub-team: Language
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Josh Cooper (JIRA)

unread,
Jun 26, 2018, 2:55:04 PM6/26/18
to puppe...@googlegroups.com

Henrik Lindberg (JIRA)

unread,
Jun 28, 2018, 12:12:03 PM6/28/18
to puppe...@googlegroups.com

init.pp

class mymodule {
  notice('help me with this problem') # Function that it will fail on
}

Henrik Lindberg (JIRA)

unread,
Jun 28, 2018, 12:18:04 PM6/28/18
to puppe...@googlegroups.com

Henrik Lindberg (JIRA)

unread,
Jun 28, 2018, 12:18:04 PM6/28/18
to puppe...@googlegroups.com
 
Re: Evaluation Error: Error while evaluating a Function Call, undefined method `include?' for nil:NilClass

This is expected behavior. A module only has access to the modules it depends on, and that all dependencies are met.
The bad dependency here is impossible to satisfy. The error message is not nice though.

I would like to see the stack trace for the error "Evaluation Error: Error while evaluating a Function Call, undefined method `include?' for nil:NilClass" that is in the title. Thomas Speigner can you paste that into a comment here?

Josh Cooper (Jira)

unread,
Jun 11, 2021, 4:26:02 PM6/11/21
to puppe...@googlegroups.com
Josh Cooper commented on Bug PUP-8031

This ticket has been inactive for 3 years, so I'm going to close it. Please reopen with the requested information if this is still needed.

This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages