Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[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>
  • Loading branch information
pmoravec committed Dec 4, 2019
1 parent 7eb369e commit e4ece65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sos/plugins/container_log.py
Expand Up @@ -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()

Expand Down

0 comments on commit e4ece65

Please sign in to comment.