Skip to content

Commit

Permalink
hw-mgmgt: script: Fix redfish login issue
Browse files Browse the repository at this point in the history
Fix redfish login issue. Was incorrect tpm read command

Bug: 4250700

Signed-off-by: Oleksandr Shamray <oleksandrs@nvidia.com>
  • Loading branch information
sholeksandr authored and felixradensky committed Jan 20, 2025
1 parent d7c7984 commit dd981d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usr/usr/bin/hw_management_redfish_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit dd981d7

Please sign in to comment.