Jira (FACT-2487) Facter 4 returns undefined method for split() on Facter.value

0 views
Skip to first unread message

Keith Ward (Jira)

unread,
Mar 24, 2020, 8:42:03 AM3/24/20
to puppe...@googlegroups.com
Keith Ward created an issue
 
Facter / Bug FACT-2487
Facter 4 returns undefined method for split() on Facter.value
Issue Type: Bug Bug
Assignee: Unassigned
Components: Facter 4
Created: 2020/03/24 5:41 AM
Environment:

OS: CentOS 7

Facter: 4

 

Priority: Blocker Blocker
Reporter: Keith Ward

When trying to run split() on a Facter.value, it exits unexpectedly with an undefined method.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo

Keith Ward (Jira)

unread,
Mar 24, 2020, 8:44:04 AM3/24/20
to puppe...@googlegroups.com
Keith Ward updated an issue
Change By: Keith Ward
Acceptance Criteria: Executing: 

interfaces = Facter.value
(:interfaces)

x = interfaces.split(',') 

Should result in x having an appropriate array of interfaces instead of exiting with an error.

 
When trying to run split() on a Facter.value, it exits unexpectedly with an undefined method.


Example code:

 
{code:java}
interfaces = Facter.value(:interfaces)
x = interfaces.split(',') 
{code}
 

Results in:
{noformat}
      NoMethodError:
        undefined method `split' for nil:NilClass{noformat}

Oana Tanasoiu (Jira)

unread,
Mar 24, 2020, 8:50:03 AM3/24/20
to puppe...@googlegroups.com
Oana Tanasoiu updated an issue
Change By: Oana Tanasoiu
Sub-team: ghost
Team: Night's Watch

Keith Ward (Jira)

unread,
Mar 24, 2020, 8:51:03 AM3/24/20
to puppe...@googlegroups.com
Keith Ward updated an issue
Change By: Keith Ward
Sub-team: ghost
Team: Night's Watch
Affects Version/s: v4.0.6
Environment: OS: CentOS 7 8.1.1911

Facter: 4

 

Oana Tanasoiu (Jira)

unread,
Mar 24, 2020, 8:52:03 AM3/24/20
to puppe...@googlegroups.com
Oana Tanasoiu updated an issue
Change By: Oana Tanasoiu
Sub-team: ghost
Team: Night's Watch

Oana Tanasoiu (Jira)

unread,
Mar 25, 2020, 4:14:03 AM3/25/20
to puppe...@googlegroups.com

Oana Tanasoiu (Jira)

unread,
Mar 25, 2020, 10:20:02 AM3/25/20
to puppe...@googlegroups.com
Oana Tanasoiu commented on Bug FACT-2487
 
Re: Facter 4 returns undefined method for split() on Facter.value

Hi, a new version of Facter, 4.0.13, was released today. With this release the problem described in this ticket should be resolved. Keith Ward could you confirm the problem is fixed now?

Keith Ward (Jira)

unread,
Mar 25, 2020, 10:42:03 AM3/25/20
to puppe...@googlegroups.com
Keith Ward commented on Bug FACT-2487

Oana Tanasoiu I've just tested this release on a number of my pipelines, and this appears to have fixed the issue for me, Many Thanks.

Oana Tanasoiu (Jira)

unread,
Mar 25, 2020, 11:45:03 AM3/25/20
to puppe...@googlegroups.com

Thank you for the update. I closed the ticket.

Reply all
Reply to author
Forward
0 new messages