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:
parent
733d017ad0
commit
c8f0cdbdfd
1 changed files with 2 additions and 2 deletions
|
@ -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'):
|
||||
|
||||
|
|
Loading…
Reference in a new issue