Blame SOURCES/sos-bz1838426-container_log-logdir.patch

5d8d66
From e4ece6569221f1833d3fb621c26f19c23662b329 Mon Sep 17 00:00:00 2001
5d8d66
From: Pavel Moravec <pmoravec@redhat.com>
5d8d66
Date: Wed, 4 Dec 2019 12:09:20 +0100
5d8d66
Subject: [PATCH] [container_log] fix unscoped 'logdir' variable
5d8d66
5d8d66
"sosreport -o container_log --all-logs" fails on global name 'logdir'
5d8d66
is not defined.
5d8d66
5d8d66
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
5d8d66
---
5d8d66
 sos/plugins/container_log.py | 2 +-
5d8d66
 1 file changed, 1 insertion(+), 1 deletion(-)
5d8d66
5d8d66
diff --git a/sos/plugins/container_log.py b/sos/plugins/container_log.py
5d8d66
index 6208ecc8..739c9956 100644
5d8d66
--- a/sos/plugins/container_log.py
5d8d66
+++ b/sos/plugins/container_log.py
5d8d66
@@ -21,7 +21,7 @@ class ContainerLog(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
5d8d66
 
5d8d66
     def setup(self):
5d8d66
         if self.get_option('all_logs'):
5d8d66
-            self.add_copy_spec(logdir)
5d8d66
+            self.add_copy_spec(self.logdir)
5d8d66
         else:
5d8d66
             self.collect_subdirs()
5d8d66
 
5d8d66
-- 
5d8d66
2.21.3
5d8d66