Skip to content

Commit

Permalink
Merge pull request #271 from gaol/CLOUD-3172
Browse files Browse the repository at this point in the history
[CLOUD-3172] readinessProve / livenessProbe fails with "'ascii' codec can't encode characters" when the locale supports non-ascii characters
  • Loading branch information
luck3y committed Mar 24, 2023
2 parents 7463fa9 + e2ea50f commit 4b615ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion os-eap-probes/common/added/probes/probe/eap/dmr.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def evaluate(self, results):
In no case do we return NOT_READY as MicroProfile Health Check is not a readiness check.
"""

if results.get("failure-description") and re.compile("JBAS014883|WFLYCTL0030").search(str(results.get("failure-description"))):
if results.get("failure-description") and (results.get("failure-description").find("JBAS014883") >= 0 or results.get("failure-description").find("WFLYCTL0030") >= 0):
return (Status.READY, "Health Check not configured")

if not results.get("result") or not results["result"].get("step-1"):
Expand Down

0 comments on commit 4b615ac

Please sign in to comment.