Skip to content

Commit 5ca1d2b

Browse files
[spyre] Run spyre checks only on RHEL and Fedora
All Spyre checks are now gated by the RHEL and Fedora schemes Signed-off-by: Sahithi Ravindranath <Sahithi.Ravindranath@ibm.com>
1 parent 82cbb07 commit 5ca1d2b

1 file changed

Lines changed: 17 additions & 2 deletions

File tree

  • servicereportpkg/validate/plugins

servicereportpkg/validate/plugins/spyre.py

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@
2020
from servicereportpkg.utils import is_package_installed
2121
from servicereportpkg.check import ConfigurationFileCheck
2222
from servicereportpkg.utils import is_read_write_to_owner_group_users
23+
from servicereportpkg.validate.schemes.schemes import FedoraScheme, RHELScheme
2324

2425

25-
class Spyre(Plugin, Scheme):
26+
class Spyre(object):
2627
"""Spyre configuration checks"""
2728

2829
def __init__(self):
29-
Plugin.__init__(self)
3030
self.name = Spyre.__name__
3131
self.description = Spyre.__doc__
3232

@@ -355,3 +355,18 @@ def check_sos_config(self):
355355

356356
sos_config_check.set_status(status)
357357
return sos_config_check
358+
359+
class SpyreFedora(Spyre, Plugin, FedoraScheme):
360+
"""Spyre Fedora configuration checks"""
361+
362+
def __init__(self):
363+
Plugin.__init__(self)
364+
Spyre.__init__(self)
365+
366+
class SpyreRHEL(Spyre, Plugin, RHELScheme):
367+
"""Spyre RHEL configuration checks"""
368+
369+
def __init__(self):
370+
Plugin.__init__(self)
371+
Spyre.__init__(self)
372+

0 commit comments

Comments
 (0)