commit | 9e5ffe19dde4e1c288d24768aadb444662919c88 | [log] [tgz] |
---|---|---|
author | Igor Kanyuka <ifelmail@gmail.com> | Wed Feb 19 16:13:51 2025 +0000 |
committer | Igor Kanyuka <ifelmail@gmail.com> | Thu Feb 20 13:43:27 2025 +0000 |
tree | 9b5ef46f9e68af3a52fb090f8ec6e0b68464825a | |
parent | 4415a72d2924826843700f2b01cd57761c8b4617 [diff] |
Add default value for message Resolution According to the spec [1] the Resolution is required, but in the generator code it's added only if it's defined in the source. Use default value "None." if it's not defined. [1] https://redfish.dmtf.org/schemas/v1/MessageRegistry.v1_6_3.json Change-Id: I91ac6504c69bc2c0f0018a6e39a67563079fc983 Signed-off-by: Igor Kanyuka <ifelmail@gmail.com>
diff --git a/tools/sdbusplus/event.py b/tools/sdbusplus/event.py index 0dedefb..e843d4c 100644 --- a/tools/sdbusplus/event.py +++ b/tools/sdbusplus/event.py
@@ -75,6 +75,8 @@ result["Message"] = language_data.message if language_data.resolution: result["Resolution"] = language_data.resolution + else: + result["Resolution"] = "None." result["MessageSeverity"] = self.registry_sev