diff --git a/lib/ansible/module_utils/facts.py b/lib/ansible/module_utils/facts.py index d333c6030c..d3faeaae2a 100644 --- a/lib/ansible/module_utils/facts.py +++ b/lib/ansible/module_utils/facts.py @@ -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'):