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

Implement #1289 #1306

Merged
merged 2 commits into from
Nov 27, 2024
Merged

Implement #1289 #1306

merged 2 commits into from
Nov 27, 2024

Conversation

reidsunderland
Copy link
Member

  • Adds _mask field to message, containing the mask tuple that was used to accept or reject the message
  • Parses additional words at the end of accept/reject lines and adds them to a list inside the mask tuple

Example:

accept .*CACN.* something=anotherthing 12345 another_thing=123 varsub=${BROKER_USER}

Would produce a mask like this:

#  pattern,   maskDir,    maskFileOption, mask_regexp,         accepting, mirror, strip, pstrip, flatten, args
('.*CACN.*', '/tmp/hpfx_amis/',   None,   re.compile('.*CACN.*'),   True,  False,     0,  False,     '/', ['something=anotherthing',  '12345',  'another_thing=123', 'varsub=anonymous'])

A plugin can choose to parse the arguments however it wants, including using ' '.join(msg['_mask'][-1]) to reassemble the arguments into a string.

Copy link

Test Results

238 tests   235 ✅  1m 33s ⏱️
  1 suites    1 💤
  1 files      2 ❌

For more details on these failures, see this check.

Results for commit cb1356b.

@petersilva petersilva merged commit 6ba722c into development Nov 27, 2024
34 of 59 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants