Jira (PUP-10251) Feature request: Add a way to turn looked up undef values in Hiera into "not found"

12 views
Skip to first unread message

Henrik Lindberg (JIRA)

unread,
Jan 24, 2020, 3:53:03 AM1/24/20
to puppe...@googlegroups.com
Henrik Lindberg updated an issue
 
Puppet / Improvement PUP-10251
Feature request: Add a way to turn looked up undef values in Hiera into "not found"
Change By: Henrik Lindberg
Summary: Feature request: Add a way to look turn looked up undef values in Hiera into "not found"
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Henrik Lindberg (JIRA)

unread,
Jan 24, 2020, 3:54:03 AM1/24/20
to puppe...@googlegroups.com

Henrik Lindberg (JIRA)

unread,
Jan 24, 2020, 5:08:04 AM1/24/20
to puppe...@googlegroups.com
Henrik Lindberg commented on Improvement PUP-10251
 
Re: Feature request: Add a way to turn looked up undef values in Hiera into "not found"

I wonder if it would be possible to solve this with the existing version by instead of binding the key to null in json you would bind it to an alias lookup of a key that does not exists. I have not tested, but that may result in the desired "not found". For example {{key: "%

{alias(non_existing_key)}

"}. It may be that results in an undef, but if it doesn't then that is a possible workaround and there would be no need to add anything to the hiera implementation.

Would be great if someone has the time to test this.

Jorie Tappa (JIRA)

unread,
Jan 27, 2020, 1:09:04 PM1/27/20
to puppe...@googlegroups.com

Jorie Tappa (JIRA)

unread,
Jan 27, 2020, 1:09:04 PM1/27/20
to puppe...@googlegroups.com

Thomas Hallgren (JIRA)

unread,
Jan 28, 2020, 1:42:04 PM1/28/20
to puppe...@googlegroups.com
Thomas Hallgren commented on Improvement PUP-10251
 
Re: Feature request: Add a way to turn looked up undef values in Hiera into "not found"

Henriks example results in an empty string. The strict_alias proposed in PUP-8593 would result in an undef.

Henrik Lindberg (JIRA)

unread,
Jan 28, 2020, 2:09:04 PM1/28/20
to puppe...@googlegroups.com

Thomas Hallgren I thought strict_alias would result in a "not-found" and that was the entire idea why having it in the first place.

Thomas Hallgren (JIRA)

unread,
Jan 28, 2020, 2:14:04 PM1/28/20
to puppe...@googlegroups.com

Josh Cooper (Jira)

unread,
Dec 2, 2020, 5:28:04 PM12/2/20
to puppe...@googlegroups.com
Josh Cooper updated an issue
 
Change By: Josh Cooper
Labels: beginner
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages