Jira (FACT-3040) undefined method `each_line' for nil:NilClass

17 views
Skip to first unread message

Jens (Jira)

unread,
May 17, 2021, 3:05:04 AM5/17/21
to puppe...@googlegroups.com
Jens created an issue
 
Facter / Bug FACT-3040
undefined method `each_line' for nil:NilClass
Issue Type: Bug Bug
Affects Versions: FACT 4.1.1
Assignee: Unassigned
Attachments: samba.rb
Components: Facter 4
Created: 2021/05/17 12:04 AM
Environment:

Puppet AIO Version
CentOS 7/8: 7.6.1
Debian: 6.22.1

Priority: Normal Normal
Reporter: Jens

Hello,

after upgrading our Puppet Infrastructure to 7.6.1, self created facts are failing on Debian 10 with "undefined method `each_line' for nil:NilClass"

The same facts are working on CentOS 7/8 w/o problems.

I need to downgrade the debian boxes to 6.22, as no 7 version is working on debian.

I attach a fact.

Thanks in Advance
Jens
 

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)
Atlassian logo

Mihai Buzgau (Jira)

unread,
May 17, 2021, 3:17:03 AM5/17/21
to puppe...@googlegroups.com

Gheorghe Popescu (Jira)

unread,
May 17, 2021, 9:42:02 AM5/17/21
to puppe...@googlegroups.com
Gheorghe Popescu commented on Bug FACT-3040
 
Re: undefined method `each_line' for nil:NilClass

Hi Jens, indeed this is a bug in Facter 4 that cannot correctly expand multi-line commands. As seen in your example:

 "dpkg-query --showformat='${PACKAGE} ${VERSION}\n' --show | egrep '(^samba |^samba-winbind )'"

I've created https://github.com/puppetlabs/facter/pull/2385 to address this

Gheorghe Popescu (Jira)

unread,
May 17, 2021, 9:49:02 AM5/17/21
to puppe...@googlegroups.com

Gheorghe Popescu (Jira)

unread,
May 18, 2021, 2:54:01 AM5/18/21
to puppe...@googlegroups.com

Mihai Buzgau (Jira)

unread,
May 19, 2021, 4:49:04 AM5/19/21
to puppe...@googlegroups.com

Ciprian Badescu (Jira)

unread,
May 19, 2021, 4:50:01 AM5/19/21
to puppe...@googlegroups.com

Mihai Buzgau (Jira)

unread,
May 19, 2021, 4:50:02 AM5/19/21
to puppe...@googlegroups.com
Mihai Buzgau updated an issue
Change By: Mihai Buzgau
Sprint: NW-2021-06-02

Gabriel Nagy (Jira)

unread,
May 19, 2021, 8:20:01 AM5/19/21
to puppe...@googlegroups.com
Gabriel Nagy updated an issue
Change By: Gabriel Nagy
Fix Version/s: FACT 4.2.0

Gabriel Nagy (Jira)

unread,
May 19, 2021, 8:20:04 AM5/19/21
to puppe...@googlegroups.com
Gabriel Nagy updated an issue
Change By: Gabriel Nagy
Release Notes Summary: This release fixes a bug where multi-line commands executed through the `Facter:: Core Util :: Execution Resolution ` API were not expanded correctly.

Claire Cadman (Jira)

unread,
May 20, 2021, 5:39:02 AM5/20/21
to puppe...@googlegroups.com
Claire Cadman updated an issue
Change By: Claire Cadman
Labels: community doc-reviewed
Reply all
Reply to author
Forward
0 new messages