mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Make ServiceMgrFactCollector.is_systemd_managed() a static method (#25316)
Fix 'hostname' module Facts is not defined by updating 'hostname' module to use it. is_systemd_managed() was previously on the module_utils.facts.Facts class that no longer exists. Fixes #25289
This commit is contained in:
@@ -39,7 +39,8 @@ class ServiceMgrFactCollector(BaseFactCollector):
|
||||
name = 'service_mgr'
|
||||
_fact_ids = set()
|
||||
|
||||
def is_systemd_managed(self, module):
|
||||
@staticmethod
|
||||
def is_systemd_managed(module):
|
||||
# tools must be installed
|
||||
if module.get_bin_path('systemctl'):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user