diff options
author | Pavel Moravec <pmoravec@redhat.com> | 2020-11-03 21:25:07 +0100 |
---|---|---|
committer | Jake Hunsaker <jhunsake@redhat.com> | 2020-11-04 12:25:00 -0500 |
commit | 61096436ad9e5ff4c36b6a3a0626038e95e5269f (patch) | |
tree | 3be3e7d2d1800fe209c220fd4cdc5bcec6623737 | |
parent | 23d7ed9b660325f07bbe4f3845ff0798604215f1 (diff) | |
download | sos-61096436ad9e5ff4c36b6a3a0626038e95e5269f.tar.gz |
[report] remove redundant test of compression methods
Argparse processing of compression method already contains
this inclusion test, let delete it from here.
Closes: #2286
Resolves: #2293
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
-rw-r--r-- | sos/report/__init__.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/sos/report/__init__.py b/sos/report/__init__.py index 7838d60a..2e97010b 100644 --- a/sos/report/__init__.py +++ b/sos/report/__init__.py @@ -820,15 +820,6 @@ class SoSReport(SoSComponent): self.policy.pre_work() try: self.ui_log.info(_(" Setting up archive ...")) - compression_methods = ('auto', 'bzip2', 'gzip', 'xz') - method = self.opts.compression_type - if method not in compression_methods: - compression_list = ', '.join(compression_methods) - self.ui_log.error("") - self.ui_log.error("Invalid compression specified: " + method) - self.ui_log.error("Valid types are: " + compression_list) - self.ui_log.error("") - self._exit(1) self.setup_archive() self._make_archive_paths() return |