Add InternalFailure error to definition for factory reset interface
In the event that one of the factory reset functions fails, we need to
create an error indicating that to the error log. This commit extends
the factory reset interface with the InternalFailure error for that
purpose.
Resolves openbmc/openbmc#1721
Change-Id: Ieefa0330d78aa8e6b7d344e4d6b8b067fdb8a7c8
Signed-off-by: Michael Tritz <mtritz@us.ibm.com>
diff --git a/xyz/openbmc_project/Common/FactoryReset.interface.yaml b/xyz/openbmc_project/Common/FactoryReset.interface.yaml
index cc5c682..93943f9 100644
--- a/xyz/openbmc_project/Common/FactoryReset.interface.yaml
+++ b/xyz/openbmc_project/Common/FactoryReset.interface.yaml
@@ -4,3 +4,5 @@
- name: Reset
description: >
Generic method to start factory reset. Implemented by each service.
+ errors:
+ - xyz.openbmc_project.Common.Error.InternalFailure