Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/sos/report/__init__.py", line 1459, in postproc
plug.postproc()
File "/usr/lib/python3/dist-packages/sos/report/plugins/juju.py", line 69, in postproc
self.do_file_private_sub(agents_path)
File "/usr/lib/python3/dist-packages/sos/report/plugins/__init__.py", line 1257, in do_file_private_sub
self.do_file_sub(path, _certmatch, replace)
File "/usr/lib/python3/dist-packages/sos/report/plugins/__init__.py", line 1287, in do_file_sub
result, replacements = re.subn(regexp, subst, content,
File "/usr/lib/python3.8/re.py", line 221, in subn
return _compile(pattern, flags).subn(repl, string, count)
File "/usr/lib/python3.8/re.py", line 299, in _compile
raise ValueError(
ValueError: cannot process flags argument with a compiled pattern
As described in https:/ /github. com/sosreport/ sos/issues/ 3261 , the flags=re.IGNORECASE argument cannot be passed with a compiled pattern.
Traceback (most recent call last): python3/ dist-packages/ sos/report/ __init_ _.py", line 1459, in postproc python3/ dist-packages/ sos/report/ plugins/ juju.py" , line 69, in postproc do_file_ private_ sub(agents_ path) python3/ dist-packages/ sos/report/ plugins/ __init_ _.py", line 1257, in do_file_private_sub do_file_ sub(path, _certmatch, replace) python3/ dist-packages/ sos/report/ plugins/ __init_ _.py", line 1287, in do_file_sub python3. 8/re.py" , line 221, in subn python3. 8/re.py" , line 299, in _compile
File "/usr/lib/
plug.postproc()
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
result, replacements = re.subn(regexp, subst, content,
File "/usr/lib/
return _compile(pattern, flags).subn(repl, string, count)
File "/usr/lib/
raise ValueError(
ValueError: cannot process flags argument with a compiled pattern
The issue was introduced by this commit - https:/ /github. com/sosreport/ sos/commit/ bb43ac3b0dddcec f9bf34e48949029 6e15a2addc
It is fixed by https:/ /github. com/sosreport/ sos/pull/ 3263