Skip to content

Commit

Permalink
Fix regex for no sudo user when checking facts
Browse files Browse the repository at this point in the history
  • Loading branch information
Fizzadar committed Feb 25, 2024
1 parent e5206e4 commit 924e644
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyinfra/api/facts.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
from pyinfra.api.host import Host
from pyinfra.api.state import State

SUDO_REGEX = r"^sudo: unknown user:"
SUDO_REGEX = r"^sudo: unknown user"
SU_REGEXES = (
r"^su: user .+ does not exist",
r"^su: unknown login",
Expand Down

0 comments on commit 924e644

Please sign in to comment.