Skip to content

Commit

Permalink
[manuf] reduce regex match string for rma unlock token data
Browse files Browse the repository at this point in the history
This reduces the RMA unlock token data regex string to make the
provisioning flow more reliable.

Signed-off-by: Tim Trippel <[email protected]>
  • Loading branch information
timothytrippel committed Dec 19, 2023
1 parent d1afaa5 commit 64da4f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sw/host/provisioning/orchestrator/ot_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def parse_logs(self):
errors="backslashreplace")

rma_msg_matches = re.findall(
r"RESP_OK:(\{\"wrapped_rma_unlock_token\":.*) CRC:.*", stdout)
r"(\{\"wrapped_rma_unlock_token\":.*) CRC:.*", stdout)
if len(rma_msg_matches) != 1:
logging.error(
f"Expected 1 RMA unlock token message, found these messages: {rma_msg_matches}"
Expand Down

0 comments on commit 64da4f1

Please sign in to comment.