You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mreg> permission network_add 123.123.123.0/27 some-group-name '^[a-z0-9\-]+(\.(aa|bbb|ccc|sikkerhet))?\.uio\.no$'
Traceback (most recent call last):
File "/usr/bin/mreg-cli", line 33, in <module>
sys.exit(load_entry_point('mreg-cli==0.0.0', 'console_scripts', 'mreg-cli')())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/mreg_cli/main.py", line 185, in main
cmd = output.from_command(line)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/mreg_cli/outputmanager.py", line 48, in from_command
self._command, self._filter_re, self._negate = self.get_filter(command)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/mreg_cli/outputmanager.py", line 102, in get_filter
filter_re = re.compile(filter_str)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/re/__init__.py", line 227, in compile
return _compile(pattern, flags)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/re/__init__.py", line 294, in _compile
p = _compiler.compile(pattern, flags)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/re/_compiler.py", line 743, in compile
p = _parser.parse(p, flags)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.11/re/_parser.py", line 987, in parse
raise source.error("unbalanced parenthesis")
re.error: unbalanced parenthesis at position 21
The text was updated successfully, but these errors were encountered:
* Avoid applying filtering inside of quoted strings.
- If a string is quoted, don't treat | as a filter command.
- Handles and matches both " and '.
Fixes#177
The text was updated successfully, but these errors were encountered: