qubes-issues
qubes-issues copied to clipboard
SALT: `merge_tops` merges in `match: pcre`
Qubes OS 4.2.4
Steps to reproduce
- Create Qubes
debiananddebain-12-xfce - Enable a top that targets
debianwithstate-one - Enable a top that targets
debianwithstate-two, but usingmatch: pcre
Expected behavior
state-one is run on debian and state-two is run on both debian and deabian-12-xfce.
Actual behavior
Both states are run on both debian and deabian-12-xfce.
Presumably because the resulting top file looks something like this:
user:
debian:
- match: pcre
- state-one
- state-two
Perhaps for now we just add a note to the docs that it is important to include ^ and $ in the VM name not only to restrict the match, but also to ensure the VM name doesn't match a non-regex VM name.