Jira (FACT-2457) LegacyFactFormatter escapes \n

8 views
Skip to first unread message

Oana Tanasoiu (Jira)

unread,
Mar 11, 2020, 8:44:03 AM3/11/20
to puppe...@googlegroups.com
Oana Tanasoiu created an issue
 
Facter / Task FACT-2457
LegacyFactFormatter escapes \n
Issue Type: Task Task
Assignee: Unassigned
Created: 2020/03/11 5:43 AM
Priority: Normal Normal
Reporter: Oana Tanasoiu

when value is a string that contains \n, facter output is:

fact => "value1 \n value2"

And it should be

fact => value1
value2

This is reproducible while running facter without a query

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

Mihai Buzgau (Jira)

unread,
Aug 11, 2020, 8:24:04 AM8/11/20
to puppe...@googlegroups.com
Mihai Buzgau updated an issue
Change By: Mihai Buzgau
Sprint: ready for triage

Andrei Filipovici (Jira)

unread,
Aug 19, 2020, 3:00:03 AM8/19/20
to puppe...@googlegroups.com
Andrei Filipovici updated an issue
Change By: Andrei Filipovici
when 1. When value is a string that contains \n, facter output is:


fact => "value1 \n value2"

And it should be

fact => value1
value2

2. When value is a string that contains ", facter output is:

fact => "value1 \"value2\" value3"

And it should be

fact => "value1 "value2" value3"

This is reproducible while running facter without a query

 

Andrei Filipovici (Jira)

unread,
Aug 19, 2020, 3:02:04 AM8/19/20
to puppe...@googlegroups.com
Andrei Filipovici updated an issue
1. When value is a string that contains \n, facter output is:

fact => "value1 \n value2"

And it should be

fact => value1
value2

This is reproducible while running facter without a query

2. When value is a string that contains ", facter output is:

fact => "value1 \"value2\" value3"

And it should be

fact => "value1 "value2" value3"

This is reproducible while running facter without a query querying for the gce fact.

 
Reply all
Reply to author
Forward
0 new messages