aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Moravec <pmoravec@redhat.com>2020-12-15 14:19:34 +0100
committerJake Hunsaker <jhunsake@redhat.com>2020-12-15 12:58:34 -0500
commit7f72a36144b3e235159556689b5129b7453294e3 (patch)
treeab7a33e9e1e268f96afbf57506259b612c2cf29c
parentb0442f23bb990bed9adf6d8c39292c09b89a0dab (diff)
downloadsos-7f72a36144b3e235159556689b5129b7453294e3.tar.gz
[component] Use sysroot from Policy when opts doesn't specify it
Until --sysroot option is specified, Archive (sub)classes should be called with sysroot determined from Policy. Resolves: #2346 Signed-off-by: Pavel Moravec <pmoravec@redhat.com> Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
-rw-r--r--sos/component.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sos/component.py b/sos/component.py
index 69d3b755..7774c05a 100644
--- a/sos/component.py
+++ b/sos/component.py
@@ -246,13 +246,13 @@ class SoSComponent():
auto_archive = self.policy.get_preferred_archive()
self.archive = auto_archive(archive_name, self.tmpdir,
self.policy, self.opts.threads,
- enc_opts, self.opts.sysroot,
+ enc_opts, self.sysroot,
self.manifest)
else:
self.archive = TarFileArchive(archive_name, self.tmpdir,
self.policy, self.opts.threads,
- enc_opts, self.opts.sysroot,
+ enc_opts, self.sysroot,
self.manifest)
self.archive.set_debug(True if self.opts.debug else False)