From dd981d7c3d286a379d391ef14302a6498d7aa86e Mon Sep 17 00:00:00 2001 From: Oleksandr Shamray Date: Mon, 20 Jan 2025 10:49:00 +0200 Subject: [PATCH] hw-mgmgt: script: Fix redfish login issue Fix redfish login issue. Was incorrect tpm read command Bug: 4250700 Signed-off-by: Oleksandr Shamray --- usr/usr/bin/hw_management_redfish_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/usr/bin/hw_management_redfish_client.py b/usr/usr/bin/hw_management_redfish_client.py index 71358584a..76855542e 100755 --- a/usr/usr/bin/hw_management_redfish_client.py +++ b/usr/usr/bin/hw_management_redfish_client.py @@ -430,7 +430,7 @@ def get_login_password(self): cmd = f'echo "{hex_data}" | xxd -r -p > {self.BMC_DIR}/{self.BMC_TPM_HEX_FILE}' subprocess.run(cmd, shell=True, check=True) - tpm_command = ["tpm2_createprimary", "-C", "o", "-u", f"{self.BMC_DIR}/nvos_const.bin", "-G", "aes256cfb"] + tpm_command = ["tpm2_createprimary", "-C", "o", "-u", f"{self.BMC_DIR}/{self.BMC_TPM_HEX_FILE}", "-G", "aes256cfb"] result = subprocess.run(tpm_command, capture_output=True, check=True, text=True) while attempt <= max_attempts: