From 815524222e9c5551fa570596f3b16a5dfaadeb05 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