aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Moravec <pmoravec@redhat.com>2019-12-04 12:09:20 +0100
committerPavel Moravec <pmoravec@redhat.com>2019-12-04 12:09:20 +0100
commite4ece6569221f1833d3fb621c26f19c23662b329 (patch)
tree9198dfe45cb9260e6a6074a3d0e78359ef33c590
parent7eb369e119cbf506e1951d5280e2a6996c6e1d12 (diff)
downloadsos-e4ece6569221f1833d3fb621c26f19c23662b329.tar.gz
[container_log] fix unscoped 'logdir' variable
"sosreport -o container_log --all-logs" fails on global name 'logdir' is not defined. Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
-rw-r--r--sos/plugins/container_log.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/plugins/container_log.py b/sos/plugins/container_log.py
index 6208ecc8..739c9956 100644
--- a/sos/plugins/container_log.py
+++ b/sos/plugins/container_log.py
@@ -21,7 +21,7 @@ class ContainerLog(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
def setup(self):
if self.get_option('all_logs'):
- self.add_copy_spec(logdir)
+ self.add_copy_spec(self.logdir)
else:
self.collect_subdirs()