Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When using a structured fact which contains a hash with a null value gets changed into an empty string. #9327

Open
saurabh-1410 opened this issue Apr 22, 2024 · 0 comments
Labels
accepted Valid issue that we intend to work on when we have the bandwidth bug Something isn't working

Comments

@saurabh-1410
Copy link

saurabh-1410 commented Apr 22, 2024

This was originally reported in https://puppet.atlassian.net/browse/PUP-11446.

Ways to reproduce -

$ echo '{"mystructuredfact": { "inner_key": null } }' > /etc/facter/facts.d/myfact.json

When that is sent to PuppetDB, queries such as "inventory[facts.mystructuredfact.inner_key]" will return "" instead of null.

Further details are in ticket PUP-11446.

@saurabh-1410 saurabh-1410 added the bug Something isn't working label Apr 22, 2024
@mhashizume mhashizume added the accepted Valid issue that we intend to work on when we have the bandwidth label Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted Valid issue that we intend to work on when we have the bandwidth bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants