registries: remove hardcoded size of MessageEntry arrays
The latest C++ no longer requires the size of the array to be hardcoded.
This removes the hardcoded size to simplify changes to the message
arrays.
Tested:
Confirmed that event Messages are still correctly generated.
Signed-off-by: Jason M. Bills <jason.m.bills@intel.com>
Change-Id: I29e6a4a02c247865c275cf4ff71587bc188d5957
diff --git a/scripts/parse_registries.py b/scripts/parse_registries.py
index 3786843..7074589 100755
--- a/scripts/parse_registries.py
+++ b/scripts/parse_registries.py
@@ -18,7 +18,7 @@
* This is an auto-generated header which contains definitions
* for Redfish DMTF defined messages.
* DO NOT modify this registry outside of running the
- * parse_regisries.py script. The definitions contained within
+ * parse_registries.py script. The definitions contained within
* this file are owned by DMTF. Any modifications to these files
* should be first pushed to the relevant registry in the DMTF
* github organization.
@@ -94,11 +94,10 @@
"constexpr const char* url =\n"
" \"{url}\";\n"
"\n"
- "constexpr std::array<MessageEntry, {message_len}> registry =\n"
+ "constexpr std::array registry =\n"
"{{\n".format(
json_dict=json_dict,
url=url,
- message_len=len(json_dict["Messages"]),
))
messages_sorted = sorted(json_dict["Messages"].items())