Skip to content

Commit

Permalink
Merge pull request #244 from tbabej/develop
Browse files Browse the repository at this point in the history
pvesh: Fix invalid string escape sequences
  • Loading branch information
lae authored Jul 1, 2024
2 parents bbc1e1f + 80925bd commit 45ebf01
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions module_utils/pvesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ def run_command(handler, resource, **params):

if handler == "get":
if any(re.match(pattern, stderr[0]) for pattern in [
"^no such user \('.{3,64}?'\)$",
"^(group|role|pool) '[A-Za-z0-9\.\-_]+' does not exist$",
"^domain '[A-Za-z][A-Za-z0-9\.\-_]+' does not exist$"]):
r"^no such user \('.{3,64}?'\)$",
r"^(group|role|pool) '[A-Za-z0-9\.\-_]+' does not exist$",
r"^domain '[A-Za-z][A-Za-z0-9\.\-_]+' does not exist$"]):
return {u"status": 404, u"message": stderr[0]}

# This will occur when a param is invalid
Expand Down

0 comments on commit 45ebf01

Please sign in to comment.