aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2018-05-09 15:03:51 +0100
committerBryn M. Reeves <bmr@redhat.com>2018-05-09 15:07:02 +0100
commitac1b776504dc96363ceb6b5e8d47199e15677e7c (patch)
treee19dd695f84902523ba51d305ba76640d7afbc85
parent790c59045354b80be180f03d6534a8b66811450a (diff)
downloadsos-ac1b776504dc96363ceb6b5e8d47199e15677e7c.tar.gz
[dnf] remove bogus suggest_filename use from dnf commands
The suggested names are not actually accurate reflections of the generated file content: drop them and just use the automatically generated names for these files. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/dnf.py13
1 files changed, 5 insertions, 8 deletions
diff --git a/sos/plugins/dnf.py b/sos/plugins/dnf.py
index ce58413a..e5426706 100644
--- a/sos/plugins/dnf.py
+++ b/sos/plugins/dnf.py
@@ -46,14 +46,11 @@ class DNFPlugin(Plugin, RedHatPlugin):
sizelimit=self.limit)
self.add_copy_spec("/var/log/dnf.rpm.log", sizelimit=self.limit)
- self.add_cmd_output("dnf --version",
- suggest_filename="dnf_version")
-
- self.add_cmd_output("dnf list installed *dnf*",
- suggest_filename="dnf_installed_plugins")
-
- self.add_cmd_output("dnf list extras",
- suggest_filename="dnf_extra_packages")
+ self.add_cmd_output([
+ "dnf --version",
+ "dnf list installed *dnf*",
+ "dnf list extras",
+ ])
if self.get_option("history"):
self.add_cmd_output("dnf history")