Skip to content

Commit

Permalink
[processor] Update predicate for msr module
Browse files Browse the repository at this point in the history
The new version of ubuntu will so need the predicate. So using >=
instead of equals. This should catch any newer versions, as I
expect newer versions also to be similar

Related: sosreport#3610

Signed-off-by: Arif Ali <[email protected]>
  • Loading branch information
arif-ali committed May 7, 2024
1 parent 5eef057 commit 14ebdd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sos/report/plugins/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def setup(self):
], cmd_as_tag=True)

if (isinstance(self.policy, UbuntuPolicy) and
self.policy.dist_version() == 24.04):
self.policy.dist_version() >= 24.04):
self.cpu_kmods = ['msr']

cpupower_pred = SoSPredicate(self, kmods=self.cpu_kmods)
Expand Down

0 comments on commit 14ebdd0

Please sign in to comment.