mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-25 14:20:22 -07: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:
parent
8f7c8ef3a5
commit
087b5277f1
2 changed files with 4 additions and 3 deletions
|
@ -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'):
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue