Skip to content

Commit

Permalink
[fwupd] Add SoSPredicate to check for service fwupd
Browse files Browse the repository at this point in the history
Without SoSPredicate, the plugin was starting
the fwupd service.

Related: RH: RHEL-24342

Signed-off-by: Jose Castillo <[email protected]>
  • Loading branch information
jcastill authored and arif-ali committed Feb 8, 2024
1 parent fdba7e6 commit 4a75051
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sos/report/plugins/fwupd.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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",
Expand Down

0 comments on commit 4a75051

Please sign in to comment.