From 4a75051ec2e94a0932163046cfb5d05943e5d1f3 Mon Sep 17 00:00:00 2001 From: Jose Castillo Date: Wed, 7 Feb 2024 13:18:48 +0000 Subject: [PATCH] [fwupd] Add SoSPredicate to check for service fwupd Without SoSPredicate, the plugin was starting the fwupd service. Related: RH: RHEL-24342 Signed-off-by: Jose Castillo --- sos/report/plugins/fwupd.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sos/report/plugins/fwupd.py b/sos/report/plugins/fwupd.py index 7518a73fca..740d648773 100644 --- a/sos/report/plugins/fwupd.py +++ b/sos/report/plugins/fwupd.py @@ -6,7 +6,7 @@ # # See the LICENSE file in the source distribution for further information. -from sos.report.plugins import Plugin, IndependentPlugin +from sos.report.plugins import Plugin, IndependentPlugin, SoSPredicate class Fwupd(Plugin, IndependentPlugin): @@ -19,6 +19,7 @@ class Fwupd(Plugin, IndependentPlugin): packages = ('fwupd',) def setup(self): + self.set_cmd_predicate(SoSPredicate(self, services=["fwupd"])) self.add_cmd_output([ "fwupdmgr get-approved-firmware", "fwupdmgr get-devices --no-unreported-check",