Skip to content

Commit

Permalink
[FIX] Fixing the bios_uuid information
Browse files Browse the repository at this point in the history
* The bios_uuid info was missing/wrong, fixed now.
  • Loading branch information
waldirio authored Mar 15, 2024
1 parent 980f855 commit ac7247b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions crhc_cli/report/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ def csv_report_inventory(json_obj):
"created",
"insights_id",
"reporter",
"rhel_machine_id",
"bios_uuid",
"tuned_profile",
"sap_system",
"sap_version",
Expand Down Expand Up @@ -565,9 +565,9 @@ def csv_report_inventory(json_obj):
stage_lst.append("No_reporter_key_available")

try:
stage_lst.append(entries["server"]["rhel_machine_id"])
stage_lst.append(entries["server"]["bios_uuid"])
except KeyError:
stage_lst.append("No_rhel_machine_id_key_available")
stage_lst.append("No_bios_uuid_key_available")

try:
stage_lst.append(entries["system_profile"]["tuned_profile"])
Expand Down Expand Up @@ -742,7 +742,7 @@ def csv_match_report(match_obj):
"created",
"insights_id",
"reporter",
"rhel_machine_id",
"bios_uuid",
"tuned_profile",
"sap_system",
"sap_version",
Expand Down Expand Up @@ -916,9 +916,9 @@ def csv_match_report(match_obj):
stage_lst.append("No_reporter_key_available")

try:
stage_lst.append(entries["server"]["rhel_machine_id"])
stage_lst.append(entries["server"]["bios_uuid"])
except KeyError:
stage_lst.append("No_rhel_machine_id_key_available")
stage_lst.append("No_bios_uuid_key_available")

try:
stage_lst.append(entries["system_profile"]["tuned_profile"])
Expand Down
6 changes: 3 additions & 3 deletions docs/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ And after that, we can see all the available methods. From now, we can call them
"results": [
{
"insights_id": "1f959a58-9e13-4d60-8cef-33a452d2303b",
"rhel_machine_id": null,
"bios_uuid": null,
...
**Using the token with the curl command**
Expand Down Expand Up @@ -115,7 +115,7 @@ This should be enough to export the data and create the file ``/tmp/inventory_re
* created
* insights_id
* reporter
* rhel_machine_id
* bios_uuid
* tuned_profile
* sap_system
* sap_version
Expand Down Expand Up @@ -210,7 +210,7 @@ This is an awesome report because will combine both information from Inventory a
* created
* insights_id
* reporter
* rhel_machine_id
* bios_uuid
* tuned_profile
* sap_system
* sap_version
Expand Down

0 comments on commit ac7247b

Please sign in to comment.