sosreport fails during collectting container logs
Issue
-
When
container_log
plugin and--all-logs
flag are enabled, sosreport fails with the following error:Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/sos/sosreport.py", line 964, in setup plug.setup() File "/usr/lib/python2.7/site-packages/sos/plugins/container_log.py", line 24, in setup self.add_copy_spec(logdir) NameError: global name 'logdir' is not defined
Environment
- Red Hat Enterprise Linux 7
- sos-3.8-9.el7_8 and earlier
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.