1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

renamed systemd detection function

This commit is contained in:
Brian Coca 2016-05-23 15:08:56 -04:00
parent 733d017ad0
commit c8f0cdbdfd

View file

@ -379,7 +379,7 @@ class Facts(object):
#FIXME: smf?
self.facts['service_mgr'] = 'svcs'
elif self.facts['system'] == 'Linux':
if self._check_systemd():
if self.is_systemd_managed():
self.facts['service_mgr'] = 'systemd'
elif self.module.get_bin_path('initctl') and os.path.exists("/etc/init/"):
self.facts['service_mgr'] = 'upstart'
@ -515,7 +515,7 @@ class Facts(object):
self.facts['date_time']['tz'] = time.strftime("%Z")
self.facts['date_time']['tz_offset'] = time.strftime("%z")
def _check_systemd(self):
def is_systemd_managed(self):
# tools must be installed
if self.module.get_bin_path('systemctl'):