Skip to content

D.367172 Updated the code to get the processor architecture in ECE Precheck Tool.#23

Open
aachal-s wants to merge 1 commit intoIBM:masterfrom
aachal-s:D.367172
Open

D.367172 Updated the code to get the processor architecture in ECE Precheck Tool.#23
aachal-s wants to merge 1 commit intoIBM:masterfrom
aachal-s:D.367172

Conversation

@aachal-s
Copy link
Copy Markdown
Collaborator

The function 'platform.processor()' returned empty for RHEL10 system.
Since platform.processor() underlying depends on 'uname -p' ->

root@aac-31:~# uname -p
unknown

Hence python treats this value as non-informative and normalizes it to an empty string.
Since we did not want to change the overall processor function. I have added in a try-fallback mechanism for getting the architecture type of the Hardware using 'uname -m'.

…echeck Tool.

Signed-off-by: Aachal Saxena <Aachal.Saxena1@ibm.com>
@aachal-s aachal-s requested a review from anurag-lab April 10, 2026 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant