Skip to content

Commit

Permalink
fix: correct the rhel_ai_version_id source (#359)
Browse files Browse the repository at this point in the history
Signed-off-by: Xiaoxue Wang <[email protected]>
  • Loading branch information
JoySnow authored Aug 21, 2024
1 parent d8640e4 commit fa2b0fb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dev/test-archives/core-base/data/etc/os-release
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ REDHAT_SUPPORT_PRODUCT_VERSION="9.4"
OSTREE_VERSION='9.20240630.0'
VARIANT_ID=rhel_ai
VARIANT="RHEL AI"
BUILD_ID='v1.1.3'
RHEL_AI_VERSION_ID='v1.1.3'
2 changes: 1 addition & 1 deletion src/puptoo/process/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,7 @@ def system_profile(
if variant_id == 'rhel_ai':
rhel_ai_profile = {
"variant": os_release_parser.get("VARIANT"),
"rhel_ai_version_id": os_release_parser.get("BUILD_ID"),
"rhel_ai_version_id": os_release_parser.get("RHEL_AI_VERSION_ID"),
}
if nvidia_smi_l:
rhel_ai_profile["nvidia_gpu_models"] = [gpu["model"] for gpu in nvidia_smi_l]
Expand Down
2 changes: 1 addition & 1 deletion tests/test_rhel_ai.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
OSTREE_VERSION='9.20240630.0'
VARIANT_ID=rhel_ai
VARIANT="RHEL AI"
BUILD_ID='v1.1.3'
RHEL_AI_VERSION_ID='v1.1.3'
""".strip()

OS_RELEASE_RHEL = """
Expand Down

0 comments on commit fa2b0fb

Please sign in to comment.