From 85f027b9610323975a1b138faec8c0bf41f30d6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Blaisot?= Date: Sun, 26 May 2024 11:09:15 +0200 Subject: [PATCH] Fix service.exists --- testinfra/modules/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testinfra/modules/service.py b/testinfra/modules/service.py index 413b2433..9a3d704a 100644 --- a/testinfra/modules/service.py +++ b/testinfra/modules/service.py @@ -176,7 +176,7 @@ def _has_systemd_suffix(self): @property def exists(self): - cmd = self.run_test('systemctl list-unit-files | grep -q"^%s"', self.name) + cmd = self.run_test('systemctl list-unit-files | grep -q "^%s"', self.name) return cmd.rc == 0 @property