diff options
author | Ed Tanous <edtanous@google.com> | 2022-02-08 11:41:53 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2022-03-08 02:10:00 +0300 |
commit | 5f2b84ee090bb9d361de9c294aa85cecf3962c11 (patch) | |
tree | 09c93476f94daa3f7e8cc599b0eca3cd4350c9ac /scripts | |
parent | fffb8c1fae42bc5ed3b07a700b71fdaf7b59eab8 (diff) | |
download | bmcweb-5f2b84ee090bb9d361de9c294aa85cecf3962c11.tar.xz |
Drop message severity
In the way we store the message registry, we store both Severity and
MessageSeverity. Severity as a field is deprecated, and in every case
in every registry both fields have the same value. We shouldn't
duplicate data in that way. This commit changes the parse_registries.py
script to stop producing the Severity field into the struct. The few
uses we have left are moved over to use MessageRegistry.
Tested:
Redfish service validator shows no errors on the
/redfish/v1/Registries tree. Other errors present that were there
previously and are unchanged.
This saves a trivial amount: about 1kB on our compressed binary size.
Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: Ibbaf533dc59eb08365d6ed309aba16b54bc40ca1
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/parse_registries.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/scripts/parse_registries.py b/scripts/parse_registries.py index 63dcbcae42..e0eaa3f5bd 100755 --- a/scripts/parse_registries.py +++ b/scripts/parse_registries.py @@ -109,7 +109,6 @@ for file, json_dict, namespace, url in files: " {{\n" " \"{message[Description]}\",\n" " \"{message[Message]}\",\n" - " \"{message[Severity]}\",\n" " \"{message[MessageSeverity]}\",\n" " {message[NumberOfArgs]},\n" " {{".format( |