Skip to content

Commit 924e644

Browse files
committed
Fix regex for no sudo user when checking facts
1 parent e5206e4 commit 924e644

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyinfra/api/facts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
from pyinfra.api.host import Host
3838
from pyinfra.api.state import State
3939

40-
SUDO_REGEX = r"^sudo: unknown user:"
40+
SUDO_REGEX = r"^sudo: unknown user"
4141
SU_REGEXES = (
4242
r"^su: user .+ does not exist",
4343
r"^su: unknown login",

0 commit comments

Comments
 (0)