Skip to content

Fix regex node lookup regression from PUP-11515#481

Draft
corporate-gadfly wants to merge 1 commit into
OpenVoxProject:mainfrom
corporate-gadfly:complex-regex
Draft

Fix regex node lookup regression from PUP-11515#481
corporate-gadfly wants to merge 1 commit into
OpenVoxProject:mainfrom
corporate-gadfly:complex-regex

Conversation

@corporate-gadfly

Copy link
Copy Markdown
Contributor

Short description

The LOOKAROUND_OPERATORS tokens introduced in 5d09d7f are uppercase, but TypeCollection#munge_name() lowercases all lookup keys, so regex nodes with group syntax (e.g. (?:-test)) were stored under a key that could never be found again, producing "Cannot find definition Node".

Fix: downcase the generated synthetic name before storing it.

Fixes: #14

Checklist

I have:

@corporate-gadfly corporate-gadfly marked this pull request as draft June 9, 2026 23:26
The LOOKAROUND_OPERATORS tokens introduced in 5d09d7f are uppercase,
but TypeCollection#munge_name() lowercases all lookup keys, so regex
nodes with group syntax (e.g. (?:-test)) were stored under a key that
could never be found again, producing "Cannot find definition Node".

Fix: downcase the generated synthetic name before storing it.

Fixes: OpenVoxProject#14

Signed-off-by: Corporate Gadfly <[email protected]>
Co-authored-by: GitHub Copilot <[email protected]>
@corporate-gadfly corporate-gadfly added the bug Something isn't working label Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Puppet 8 introduced a regex node definition regression

1 participant