sos/backport-archive-fix-local-variable-name-in-FileCacheArchive.patch

31 lines
1.1 KiB
Diff

From 3a2453c186084a2b7ef15702775809a76e13c45c Mon Sep 17 00:00:00 2001
From: "Bryn M. Reeves" <bmr@redhat.com>
Date: Tue, 11 Sep 2018 12:54:20 +0100
Subject: [PATCH 0051/1146] [archive] fix local variable name in
FileCacheArchive.add_link()
The 'link_path' local was renamed to 'link_name' to better match
other uses in the code.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
---
sos/archive.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sos/archive.py b/sos/archive.py
index 4b30630b..528cfa57 100644
--- a/sos/archive.py
+++ b/sos/archive.py
@@ -428,7 +428,7 @@ class FileCacheArchive(Archive):
source = os.path.relpath(source)
self.log_debug("Adding link %s -> %s for link follow up" %
(link_name, source))
- self.add_link(source, link_path)
+ self.add_link(source, link_name)
elif os.path.isdir(host_source):
self.log_debug("Adding dir %s for link follow up" % source)
self.add_dir(host_source)
--
2.26.0.windows.1