Skip to content

Commit 75dcf1c

Browse files
ckanibalphilpep
authored andcommitted
service-module: use /run/systemd/system/ to detect systemd (fixes #546)
1 parent 6c7715c commit 75dcf1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

testinfra/modules/service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def is_masked(self):
6363
@classmethod
6464
def get_module_class(cls, host):
6565
if host.system_info.type == "linux":
66-
if (
66+
if host.file("/run/systemd/system/").is_directory or (
6767
host.exists("systemctl")
6868
and "systemd" in host.file("/sbin/init").linked_to
6969
):

0 commit comments

Comments
 (0)