Skip to content

Commit 4018bdd

Browse files
amirrossertphilpep
authored andcommitted
Refactor
Signed-off-by: Amir Rossert <[email protected]>
1 parent 19effa1 commit 4018bdd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

testinfra/modules/service.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,7 @@ def is_running(self):
186186
# 1: program is dead and pid file exists
187187
# 3: not running and pid file does not exists
188188
# 4: Unable to determine status (no such unit)
189-
out = self.run_expect([0, 1, 3, 4], "systemctl is-active %s",
190-
self.name)
189+
out = self.run_expect([0, 1, 3, 4], "systemctl is-active %s", self.name)
191190
if out.rc == 1:
192191
# Failed to connect to bus: No such file or directory
193192
return super().is_running

0 commit comments

Comments
 (0)