Change selDelete to return void to avoid magic numbers
The selDelete function is changed to throw a ResourceNotFound error
when attempting to delete a non-existent SEL record instead of returning
a magic number to signal phosphor-ipmi-host. Additionally, the
phosphor-ipmi-host package will call the SELDelete method to call
selDelete function so the dbus method name has been updated to reflect
that.
Tested:
1. Generated SEL entries
2. Delete a SEL entry using:
busctl call xyz.openbmc_project.Logging.IPMI \
/xyz/openbmc_project/Logging/IPMI xyz.openbmc_project.Logging.IPMI \
SELDelete q <RecordID>
3. Using ipmitool sel list, all remaining SEL entries are seen
4. See a ResourceNotFound error if used a RecordID not already in SEL
Change-Id: I33f0b70e9fbe4c7d8dc0f35589ae3096ed5fe269
Signed-off-by: Jonico Eustaquio <jonico.eustaquio@fii-na.com>
diff --git a/meson.options b/meson.options
index 39f082d..0ca3214 100644
--- a/meson.options
+++ b/meson.options
@@ -11,4 +11,4 @@
option('send-to-logger', type: 'boolean',
description: 'Automatically log events to Redfish for pulse type assert-deassert sensor events')
option('sel-delete', type: 'boolean',
- description: 'Enables ability to delete SEL entries given a record ID')
\ No newline at end of file
+ description: 'Enables ability to delete SEL entries given a record ID')