Skip to content
Commit c1fc268e authored by marcjones-ampere's avatar marcjones-ampere Committed by Nhi Pham
Browse files

verify_tpm_measurements: Fix TPM compare() error



The script fails with the following:
Traceback (most recent call last):
  File "/bin/verify_tpm_measurements.py", line 92, in <module>
    compare()
  File "/bin/verify_tpm_measurements.py", line 82, in compare
    if flag == 1 :
UnboundLocalError: local variable 'flag' referenced before assignment

Assign a default value to flag and fix the logic to track a failure
on any line and report it.

Signed-off-by: default avatarNhi Pham <nhi@os.amperecomputing.com>
parent 6aee8a2f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment