Skip to content

Commit

Permalink
prompt user when cpu string isn't auto detected
Browse files Browse the repository at this point in the history
  • Loading branch information
markdhooper committed Dec 5, 2022
1 parent 1335043 commit 2eb8254
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 14 deletions.
6 changes: 2 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
## Serial45d 1.1.0-5
## Serial45d 1.1.0-6

* Added support for ASRockRack EPC621D8A motherboards
* Added the ability to serialize F8X units (naming convention subject to change)
* improved key error checking in serial45d script when accessing fru data read from board
* updated how system version detection is handled when cpu string doesn't have desired keywords
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"title": "Serial45d",
"prerelease": false,
"version": "1.1.0",
"buildVersion": "5",
"buildVersion": "6",
"author": "Mark Hooper <mhooper@45drives.com>",
"url": "https://github.com/45Drives/serial45d",
"category": "utils",
Expand Down Expand Up @@ -53,7 +53,7 @@
"changelog": {
"urgency": "medium",
"version": "1.1.0",
"buildVersion": "5",
"buildVersion": "6",
"ignore": [],
"date": null,
"packager": "Mark Hooper <mhooper@45drives.com>",
Expand Down
3 changes: 3 additions & 0 deletions packaging/el7/main.spec
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ fi
%{_bindir}/*

%changelog
* Mon Dec 05 2022 Mark Hooper <mhooper@45drives.com> 1.1.0-6
- updated how system version detection is handled when cpu string doesn't have desired
keywords
* Wed Sep 14 2022 Mark Hooper <mhooper@45drives.com> 1.1.0-5
- Added support for ASRockRack EPC621D8A motherboards
- Added the ability to serialize F8X units (naming convention subject to change)
Expand Down
3 changes: 3 additions & 0 deletions packaging/el8/main.spec
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ fi
%{_bindir}/*

%changelog
* Mon Dec 05 2022 Mark Hooper <mhooper@45drives.com> 1.1.0-6
- updated how system version detection is handled when cpu string doesn't have desired
keywords
* Wed Sep 14 2022 Mark Hooper <mhooper@45drives.com> 1.1.0-5
- Added support for ASRockRack EPC621D8A motherboards
- Added the ability to serialize F8X units (naming convention subject to change)
Expand Down
7 changes: 7 additions & 0 deletions packaging/focal/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
serial45d (1.1.0-6focal) focal; urgency=medium

* updated how system version detection is handled when cpu string doesn't have
desired keywords

-- Mark Hooper <mhooper@45drives.com> Mon, 05 Dec 2022 05:53:46 -0400

serial45d (1.1.0-5focal) focal; urgency=medium

* Added support for ASRockRack EPC621D8A motherboards
Expand Down
10 changes: 2 additions & 8 deletions src/fakeroot/opt/45drives/serial45d/serial45d
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,8 @@ def assignProductName(auto_detect_fields,fru_fields):
"X11SSH-CTF":"Base",
"X11SSM-F": "Base",
"X11DPL-i": "Turbo",
"X11DPH-T": "Turbo"
"X11DPH-T": "Turbo",
"X10DRL-i": "Turbo"
}

cpu_substr_to_version_lut = {
Expand Down Expand Up @@ -626,13 +627,6 @@ def assignProductName(auto_detect_fields,fru_fields):

if unique_product_str_tmp in g_config_file_content["Product Name"]:
final_product_str = unique_product_str_tmp
else:
print("Product Configuration of \"{ps}\" is INVALID. \nRun Program again or contact Mark Hooper if issue persists.".format(ps=unique_product_str_tmp))
print("Valid Product Configurations: ")
for valid_product in g_config_file_content["Product Name"]:
print("\t{vp}".format(vp=valid_product))
input("Press ENTER to End Program.")
exit(0)

if final_product_str != "unknown":
# we got valid input from user and assigned a value to final product string.
Expand Down

0 comments on commit 2eb8254

Please sign in to comment.