diff options
author | Pavel Moravec <pmoravec@redhat.com> | 2023-05-02 08:27:12 +0200 |
---|---|---|
committer | Jake Hunsaker <jhunsake@redhat.com> | 2023-05-02 12:52:35 -0400 |
commit | a3c9f871bcab09897dd9188faca97d4fff7f62e7 (patch) | |
tree | eb20b6ca88c57d1601b180ca43d73115b307a90f | |
parent | dbed338bd13e5abda817175cd698a8664349f89a (diff) | |
download | sos-a3c9f871bcab09897dd9188faca97d4fff7f62e7.tar.gz |
[dnf] Remove redundant --asumeno option
This is to revert #2091 as no such dnf command should wait for user
prompt, and having --assumeno makes final filenames redundantly harder
to read.
Further, stop collecting "dnf list installed *dnf*" as we already
collect whole "dnf list installed".
Resolves: #3211
Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
-rw-r--r-- | sos/report/plugins/dnf.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sos/report/plugins/dnf.py b/sos/report/plugins/dnf.py index 368ffb96..5250e2cb 100644 --- a/sos/report/plugins/dnf.py +++ b/sos/report/plugins/dnf.py @@ -46,7 +46,7 @@ class DNFPlugin(Plugin, RedHatPlugin): if "[i]" in line: module = line.split()[0] if module != "Hint:": - self.add_cmd_output("dnf --assumeno module info " + module, + self.add_cmd_output("dnf module info " + module, tags='dnf_module_info') def setup(self): @@ -71,13 +71,12 @@ class DNFPlugin(Plugin, RedHatPlugin): self.add_copy_spec("/var/log/dnf.librepo.log*") self.add_copy_spec("/var/log/dnf.rpm.log*") - self.add_cmd_output("dnf --assumeno module list", + self.add_cmd_output("dnf module list", tags='dnf_module_list') self.add_cmd_output([ "dnf --version", - "dnf --assumeno list installed *dnf*", - "dnf --assumeno list extras", + "dnf list extras", "package-cleanup --dupes", "package-cleanup --problems" ]) @@ -120,7 +119,7 @@ class DNFPlugin(Plugin, RedHatPlugin): tags='dnf_history_info') # Get list of dnf installed modules and their details. - module_cmd = "dnf --assumeno module list --installed" + module_cmd = "dnf module list --installed" modules = self.collect_cmd_output(module_cmd) self.get_modules_info(modules['output']) |