Jira (PUP-11754) Ensure empty metadata files are treated as though they don't exist

4 views
Skip to first unread message

Aria Li (Jira)

unread,
Mar 9, 2023, 5:03:01 PM3/9/23
to puppe...@googlegroups.com
Aria Li updated an issue
 
Puppet / Task PUP-11754
Ensure empty metadata files are treated as though they don't exist
Change By: Aria Li
Currently, Puppet::Util::Json.load rejects empty string as a JSON file. 

However, an empty string is a valid JSON so Puppet::Util::Json.load should accept an empty string, check for an empty string, and return nil if an empty string is passed in.

Rspec tests may need to be updated or added.
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8)
Atlassian logo

Aria Li (Jira)

unread,
Mar 9, 2023, 5:03:01 PM3/9/23
to puppe...@googlegroups.com
Aria Li updated an issue
Change By: Aria Li
Summary: Puppet::Util::Json.load should accept an Ensure empty string metadata files are treated as though they don't exist
Reply all
Reply to author
Forward
0 new messages