diff options
author | Pavel Moravec <pmoravec@redhat.com> | 2017-01-02 12:16:53 +0100 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2017-02-20 15:15:56 +0000 |
commit | 06319336ac9e99ca152e7bcf884e4473bf59f2fd (patch) | |
tree | d3bae4b2e15abf6cbad05976333f1438aebd2adf | |
parent | af36c011bd420d61bbe84d9566a61464839ee614 (diff) | |
download | sos-06319336ac9e99ca152e7bcf884e4473bf59f2fd.tar.gz |
[archive] compress tarball without a timeout
Compressing tarball uses default 300s timeout, while sosreports with large data
or random content can require more time to xz/gz the tarball.
Resolves: #910
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
-rw-r--r-- | sos/archive.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sos/archive.py b/sos/archive.py index 463c23b8..1084fbbe 100644 --- a/sos/archive.py +++ b/sos/archive.py @@ -420,7 +420,8 @@ class TarFileArchive(FileCacheArchive): if cmd != "gzip": cmd = "%s -1" % cmd try: - r = sos_get_command_output("%s %s" % (cmd, self.name())) + r = sos_get_command_output("%s %s" % (cmd, self.name()), + timeout=0) if r['status']: self.log_info(r['output']) |