diff options
6 files changed, 10 insertions, 11 deletions
diff --git a/redfish-core/include/registries/base_message_registry.hpp b/redfish-core/include/registries/base_message_registry.hpp index 48875ec08f..d36b04100e 100644 --- a/redfish-core/include/registries/base_message_registry.hpp +++ b/redfish-core/include/registries/base_message_registry.hpp @@ -3,7 +3,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. @@ -29,7 +29,7 @@ const Header header = { constexpr const char* url = "https://redfish.dmtf.org/registries/Base.1.11.0.json"; -constexpr std::array<MessageEntry, 93> registry = +constexpr std::array registry = { MessageEntry{ "AccessDenied", diff --git a/redfish-core/include/registries/openbmc_message_registry.hpp b/redfish-core/include/registries/openbmc_message_registry.hpp index a47475f8b7..db624e73b6 100644 --- a/redfish-core/include/registries/openbmc_message_registry.hpp +++ b/redfish-core/include/registries/openbmc_message_registry.hpp @@ -29,7 +29,7 @@ const Header header = { "0.3.1", "OpenBMC", }; -constexpr std::array<MessageEntry, 190> registry = { +constexpr std::array registry = { MessageEntry{ "ADDDCCorrectable", { diff --git a/redfish-core/include/registries/privilege_registry.hpp b/redfish-core/include/registries/privilege_registry.hpp index bd0a501fb6..a10c7f6b6f 100644 --- a/redfish-core/include/registries/privilege_registry.hpp +++ b/redfish-core/include/registries/privilege_registry.hpp @@ -4,7 +4,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. diff --git a/redfish-core/include/registries/resource_event_message_registry.hpp b/redfish-core/include/registries/resource_event_message_registry.hpp index 5a70355dc9..3b02cde1c6 100644 --- a/redfish-core/include/registries/resource_event_message_registry.hpp +++ b/redfish-core/include/registries/resource_event_message_registry.hpp @@ -3,7 +3,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. @@ -29,7 +29,7 @@ const Header header = { constexpr const char* url = "https://redfish.dmtf.org/registries/ResourceEvent.1.0.3.json"; -constexpr std::array<MessageEntry, 19> registry = +constexpr std::array registry = { MessageEntry{ "LicenseAdded", diff --git a/redfish-core/include/registries/task_event_message_registry.hpp b/redfish-core/include/registries/task_event_message_registry.hpp index 5e3802143a..5158ff40c4 100644 --- a/redfish-core/include/registries/task_event_message_registry.hpp +++ b/redfish-core/include/registries/task_event_message_registry.hpp @@ -3,7 +3,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. @@ -29,7 +29,7 @@ const Header header = { constexpr const char* url = "https://redfish.dmtf.org/registries/TaskEvent.1.0.3.json"; -constexpr std::array<MessageEntry, 9> registry = +constexpr std::array registry = { MessageEntry{ "TaskAborted", diff --git a/scripts/parse_registries.py b/scripts/parse_registries.py index 378684392a..7074589fef 100755 --- a/scripts/parse_registries.py +++ b/scripts/parse_registries.py @@ -18,7 +18,7 @@ WARNING = '''/**************************************************************** * 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 @@ for file, json_dict, namespace, url in files: "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()) |