Jira (FACT-1895) Executable and Structured data facts in .txt format to allow Boolean conversion

2 views
Skip to first unread message

Martin Ewings (JIRA)

unread,
Nov 27, 2018, 8:24:02 AM11/27/18
to puppe...@googlegroups.com
Martin Ewings created an issue
 
Facter / Improvement FACT-1895
Executable and Structured data facts in .txt format to allow Boolean conversion
Issue Type: Improvement Improvement
Assignee: Unassigned
Created: 2018/11/27 5:23 AM
Priority: Normal Normal
Reporter: Martin Ewings

When interpreting a fact in a key Value pair either in a .txt file or in the return from an executable fact, see example:

key1=true
key2=false
key3=true

 

Currently this data type interprets only as a String. "true" and "false" are not identified as being boolean values, as they would in a JSON or YAML Structured data facts

 

The request would be to either, allow for the interpretation of the key value pairs as boolean   or to allow JSON or YAML formatted returns from Executable facts

 

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Branan Riley (JIRA)

unread,
Dec 6, 2018, 5:00:09 PM12/6/18
to puppe...@googlegroups.com
Branan Riley commented on Improvement FACT-1895
 
Re: Executable and Structured data facts in .txt format to allow Boolean conversion

JSON and YAML formatting are already supported in executable facts (see FACT-1356 and FACT-1653). We have a ticket to update the documentation to reflect that. It ended up in the release notes, but fell through the cracks for updating the main documentation.

 

FACT-1876 tracks us making explicit in the docs how executable facts work when outputting structured data.

Branan Riley (JIRA)

unread,
Dec 6, 2018, 5:02:03 PM12/6/18
to puppe...@googlegroups.com
Branan Riley commented on Improvement FACT-1895

As far as changing how we parse key=value, I think we'd probably consider that a breaking change - the types of facts are sort of part of the "API" with puppet manifests, and changing those types can break compiles

Austin Boyd (JIRA)

unread,
Dec 5, 2019, 6:38:04 AM12/5/19
to puppe...@googlegroups.com
Austin Boyd updated an issue
 
Change By: Austin Boyd
Zendesk Ticket IDs: 32686
Zendesk Ticket Count: 1
Reply all
Reply to author
Forward
0 new messages