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:
Adrian Likins 2017-06-05 09:39:05 -04:00 committed by GitHub
commit 087b5277f1
2 changed files with 4 additions and 3 deletions

View file

@ -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'):