Skip to content

CFE-2139: Allowed modules to define empty lists - #6270

Open
nickanderson wants to merge 1 commit into
cfengine:masterfrom
nickanderson:CFE-2139/master
Open

CFE-2139: Allowed modules to define empty lists#6270
nickanderson wants to merge 1 commit into
cfengine:masterfrom
nickanderson:CFE-2139/master

Conversation

@nickanderson

Copy link
Copy Markdown
Member

RlistParseString() reports success separately now and hands the list back through an out-parameter, so an empty list can be told apart from a parse failure.

Ticket: CFE-2139

A module could not define a list with no elements; "{}" and "{ }" were rejected
as malformed. Storing an empty list already worked, but a parse failure and a
successfully parsed empty list were indistinguishable, so RlistParseString()
reports success separately and hands the list back through an out-parameter.

Ticket: CFE-2139
Changelog: Title
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@nickanderson
nickanderson requested a review from larsewi August 5, 2026 20:54
@nickanderson

Copy link
Copy Markdown
Member Author

@cf-bottom jenkins, please

@cf-bottom

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants