Commit a736e83
committed
suse: add SLESPolicy and fix OpenSuSEPolicy detection
SuSEPolicy.check() always returns False, requiring concrete subclasses
to override it. OpenSuSEPolicy never did, and no SLESPolicy existed,
so both openSUSE and SLES systems fell back to GenericLinuxPolicy which
uses a no-op PackageManager with an empty package dict. This caused all
package-gated plugins (rdma, roce, infiniband, etc.) to show as inactive
regardless of what was installed.
Add SLESPolicy with os_release_name/os_release_id matching SLES
/etc/os-release values, and fix OpenSuSEPolicy to override check() via
LinuxPolicy.check() so both policies are correctly detected and
RpmPackageManager is used for package lookups.
Signed-off-by: Michael Filanov <mfilanov@nvidia.com>1 parent d690337 commit a736e83
1 file changed
Lines changed: 28 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
65 | | - | |
| 64 | + | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
84 | 105 | | |
85 | 106 | | |
0 commit comments